Condition Coverage
Condition coverage includes decision coverage and additionally records if all subconditions inside decisions are evaluated as true and as false.
Example:
if ((a || b) && (c || d)) {...}Full condition coverage is achieved if the overall decision has been evaluated to TRUE and to FALSE and each atomic condition (a, b, c and d) has been evaluated to TRUE and to FALSE.
When calculating the TER of this code segment, Testwell CTC++ takes
these 10 measure points into account.
Note: Condition coverage is available via ctcpost with the option
-fc
. The code
must have been instrumented for multicondition coverage.