Skip to main content

measure_patch_rust

Function measure_patch_rust 

Source
pub fn measure_patch_rust(
    root: &Path,
    ignore: &[String],
) -> Result<BTreeMap<String, BTreeSet<u64>>>
Expand description

Run the Rust unit suite under cargo llvm-cov in root and return the uncovered lines per file — keyed by the absolute path llvm-cov reports, the caller re-keying to root-relative to match the diff. A line is uncovered when llvm-cov records no execution for it (an LCOV DA:<line>,0). What patch coverage (#136, crate::patch_coverage::check_rust) reads; ignore is the coverage-rule exemptions, dropped from the run so an exempt file’s changed lines are lifted. cargo-llvm-cov must be installed.