Partial Instrumentation

In several situations, parts of the source code shall not be instrumented for coverage measurement, but still be compiled as a part of the project. Testwell CTC++ offers three ways to do that: On source file level, on function level, or inside the code.

Typical situations were a partial instrumentation is useful are:
  • Unit test code shall not be instrumented.
  • Code from standard headers shall be excluded.
  • The source has to be instrumented in portions for very small embedded targets.
Note: It is also possible to exclude source files from reports with ctcpost and its options -f and -nf.