Skip to main content

Module model

Module model 

Source
Expand description

The per-line coverage model that every parser produces.

A CoverageReport is a map of repo-relative file paths to their FileCoverage, where each file records the hit count of every executable line. Non-executable lines (blank, comment, declaration-only) are simply absent — CoverageReport::hits returns None for them, which callers use to exclude them from coverage denominators.

Structs§

CoverageReport
A whole coverage report: repo-relative file path → FileCoverage.
FileCoverage
Per-line hit counts for a single source file.