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 later from reports with ctcreport or ctcpost. This is necessary, for example, when an included file shall be instrumented, but the including file shall not be reported.