Example of CTC++ Untested Code Listing

 
*****************************************************************************
*           CTC++, Test Coverage Analyzer for C/C++, Version 7.0            *
*                                                                           *
*                          UNTESTED CODE LISTING                            *
*                                                                           *
*                    Copyright (c) 1993-2011 Testwell Oy                    *
*****************************************************************************
 
 
Symbol file(s) used   : MON.sym (Fri Jul 01 08:22:06 2011)
Data file(s) used     : MON.dat (Fri Jul 01 08:23:00 2011)
Listing produced at   : Fri Aug 05 07:39:58 2011
Coverage view         : As instrumented
 
 
 
MONITORED SOURCE FILE : io.c
INSTRUMENTATION MODE  : multicondition+inclusive_timing
 
 HITS/TRUE      FALSE    LINE DESCRIPTION
=============================================================================
 
         8                  5 FUNCTION io_ask()
         0          8 -    11   if (( amount = scanf ( "%u" , & val ) ) <= 0)
 
-----------------------------------------------------------------------------
 
 
 
MONITORED SOURCE FILE : calc.c
INSTRUMENTATION MODE  : multicondition+inclusive_timing
 
 HITS/TRUE      FALSE    LINE DESCRIPTION
=============================================================================
 
         6                  4 FUNCTION is_prime()
         2          4       8   if (val == 1 || val == 2 || val == 3)
         0            -     8     1: T || _ || _
         0            -     8     3: F || F || T
         0          2 -    12   for (;divisor < val / 2;)
         0          0 -    14     if (val % divisor == 0)
         0            -    15       return 0
 
-----------------------------------------------------------------------------
 
 
 
SUMMARY
=======
 
Source files       : 3
Source lines       : 59
Measurement points : 27
TER                : 76 % (22/29) multicondition
TER                : 88 % (21/24) statement

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 (and some context lines to make the listing more understandable).

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