Coverage Levels

Supported Code Coverage Levels

Coco supports the following coverage levels:

  • Function coverage
  • Line Coverage
  • Statement Coverage
  • Decision Coverage (or Branch Coverage)
  • Condition Coverage
  • MC/DC – Modified Condition/Decision Coverage
  • MCC – Multiple Condition Coverage

The Call Coverage metric is not explictly listed but is implicitly covered by Condition Coverage, MC/DC and MCC.

Visualization

For easier analysis the source code is colored depending on whether a line, branch or condition is covered – or not:

coco-coverage-colors

See our site http://www.opencoverage.net for more sophisticated examples from real world projects.