Skip to main content

measure_report

Function measure_report 

Source
pub fn measure_report(root: &Path, omit: &[String]) -> Result<CoverageReport>
Expand description

Run the Python unit suite under coverage.py in root and return the parsed report with its per-file files detail — measuring only the files the suite imports (no --source=.), exactly as the whole-tree floor measure does. The line-scoped exemption path (#226) reads this: it recomputes the floor over the measured lines minus the exempt ones, so it must see the same file set measure does (an untested-but-unimported file is out of scope for both), not the wider --source=. set measure_patch_report uses for the diff. omit is as in measure.