Code Coverage Tool Reference Manual

Interpreting the Code Coverage Report
HP Code Coverage Tool Reference Manual for HP Integrity NonStop NS-Series Servers542684-004
7-7
Understanding Color Coding in the Code Coverage
Report
For another example, consider the following partial codecov output:
In this example, the notation (1/2) indicates that two blocks were generated for the
if statement, and only one of them was covered; the covered block was executed 10
times, and the other block was not executed.
Using the -ucolor Option
The -ucolor option specifies the color to use for source code for which no object code
was generated. However, as shown in the preceding examples, codecov always
assumes that a block ends just before the next block begins and, therefore, does not
know which source code has no object code. In actual practice, the -ucolor option is
useful only for lines at the beginning of each source file, preceding the first block.
.
if (n==1)||(n++2)
^10(1/2)