Example of CTC++ Untested Code Listing

*****************************************************************************
* CTC++, Test Coverage Analyzer for C/C++, Version 6.5 *
* *
* UNTESTED CODE LISTING *
* *
* Copyright (c) 1993-2008 Testwell Oy *
*****************************************************************************


Symbol file(s) used : MON.sym (Thu Feb 07 13:59:53 2008)
Data file(s) used : MON.dat (Thu Feb 07 14:03:02 2008)
Listing produced at : Thu Feb 07 14:03:52 2008
Coverage view : As instrumented



MONITORED SOURCE FILE : calc.c
INSTRUMENTATION MODE : function-decision-multicondition-timing

START/ END/
TRUE FALSE LINE DESCRIPTION
=============================================================================

3 0 4 FUNCTION is_prime()
1 2 8 if (val == 1 || val == 2 || val == 3)
0 - 8 T || _ || _
0 - 8 F || F || T
0 1 - 12 for (;divisor < val / 2;)
0 0 - 14 if (val % divisor == 0)
0 - 15 return 0

-----------------------------------------------------------------------------



MONITORED SOURCE FILE : io.c
INSTRUMENTATION MODE : function-decision-multicondition-timing

START/ END/
TRUE FALSE LINE DESCRIPTION
=============================================================================

4 0 5 FUNCTION io_ask()
0 4 - 11 if (( amount = scanf ( "%u" , & val ) ) <= 0)

-----------------------------------------------------------------------------





SUMMARY
=======

Number of monitored source files : 3
Number of source lines : 59
Number of measurement points : 30
TER : 75% (multicondition)

The Untested Code Listing is similar to Execution Profile Listing, but only the lines that in the Execution Profile Listing had a '-' marking are listed here.

A more convenient way to view the untested code locations is the HTML report form.