Skip to main content

measure_patch_rust_detail

Function measure_patch_rust_detail 

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

Run the Rust unit suite under cargo llvm-cov in root and return the per-file region detail — keyed by the absolute path llvm-cov reports, the caller re-keying to root-relative to match the diff. Reads the full --json export for the diff-scoped floor (#162): the per-region (line, covered) detail the floor’s regions metric needs. 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.