Line Coverage

In Testwell CTC++, line coverage is a visual indication in the HTML report if a source code line was executed, not executed or partially executed.

Line coverage is included in the source code view if the code was instrumented for decision coverage or multicondition coverage.

In this example, line 3 is partially executed as the if- statement is executed, but the inner code of the if-branch is not executed.

The else-branch of the second if-statement in line 5 is not executed and this is shown with the red color of lines 8 and 9: