pub fn check(root: &Path, base: &str, omit: &[String]) -> Result<Vec<Uncovered>>Expand description
Every line added or modified in root’s <base>...HEAD diff that the unit
suite doesn’t cover, sorted for deterministic output. omit is the
coverage-rule exemptions (as in crate::coverage::measure) — an exempt
file is omitted from the run, so its changed lines are lifted.
Scopes to .py sources (the Python arm this slice) and returns early — with
no coverage run — when the diff touches none, so a PR that changes only docs or
other languages doesn’t pay for a measurement. Requires coverage.py + pytest +
git; an unresolvable base surfaces as an error rather than a silent pass.