The Code Coverage Tool (CCT) measures C statement coverage in code built as a Real-Time Workshop S-Function. It operates in conjunction with lcc (the C-Compiler that ships with the standard MATLAB installation). CCT inserts instrumentation code into the assembly source generated by lcc during a normal compile. This additional code logs when a line is executed in memory on the PC. When a simulation completes, the line execution counts are sent to the MATLAB base workspace.
A full description of CCT and installation instructions are included in the cct.zip download. See the file readme.html.
It gives the coverage of the last run, it doesn't give coverage for the cumulative run as in model coverage.
good -i'll try
This tool is giving line coverage information. But code coverage will be incomplete without a mention of MC/DC (Multiple conditions and Decision coverage) information!
cct_setup so build works when there are spaces in the path.
Compatibility updates with R2008b and R2009a (HTML formatting and data communication with MATLAB workspace). I have added a makefile so that the compiler interceptor executables can now be built by lcc from the supplied sources.
Path bug found in cct_setup.m during testing. A file separator was missing when toolroot was expanded.
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.