scitools.com

← Metric catalog

Coverage Hits is one of the source-code metrics Understand computes across 17+ languages — browse them in the GUI, export and track them, or script them with the Python API.

Coverage Hits

API ID: CoverageHits
Languages: Any
Targets: Functions

The number of coverage hits for the function or line

Code coverage is run time information about how many times a line of code was executed. These plugins support reading coverage information from a lcov ↗ ".info" file. By default, the file is assumed to be in the same directory as the .und project and be named "coverage.info", but the file can be set per project from project configuration.

See also the blog articles Visualize Code Coverage in Understand ↗ and Showing Line Coverage ↗.