What is the difference between “full coverage” and “code coverage” in rcov?

When rcov generates a report, it shows the "total coverage" and "code coverage" for each file. What is the difference between two metrics?

+7
source share
1 answer

From http://www.rubydoc.info/github/relevance/rcov/master/Rcov/FileStatistics

total_coverage :

The overall coverage rate, if the comments are also considered “executable,” given as a percentage

code_coverage :

Code coverage ratio: the proportion of lines of code executed relative to the total number of lines of code (loc).

If comments on a project are considered executable, the most valuable indicator is code coverage.

+12
source

All Articles