Code Coverage Tool
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.
Cite As
Mark Walker (2024). Code Coverage Tool (https://www.mathworks.com/matlabcentral/fileexchange/14284-code-coverage-tool), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.5.0.0 | cct_setup so build works when there are spaces in the path.
|
||
1.2.0.0 | 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. |
||
1.0.0.0 | Main reason is original submission only worked with R2006a. This version contains an installer to allow CCT to work on R2006a and R2006b. Pre-built files have been added to improve usability also. |