Skip to main content

measure_rust

Function measure_rust 

Source
pub fn measure_rust(
    root: &Path,
    thresholds: RustThresholds,
    ignore: &[String],
) -> Result<Outcome>
Expand description

Run the unit suite under cargo llvm-cov in root and check it against thresholds.

Shells out to cargo llvm-cov --json --summary-only, omitting every path in ignore from the denominator (a single --ignore-filename-regex), then evaluates the export. ignore holds the coverage-rule exemptions resolved from config, as root-relative paths. cargo-llvm-cov must be installed.