Skip to main content

measure_patch_report

Function measure_patch_report 

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

Run the Python unit suite under coverage.py in root with every source under root measured (coverage run --source=.) and return the parsed report — so an untested source shows in the files block as wholly uncovered rather than vanishing. The per-file detail is what patch coverage (#132) reads; omit is as in measure (an exempt file stays out of the run, so its changed lines are lifted).