Skip to main content

measure_rust

Function measure_rust 

Source
pub fn measure_rust(
    root: &Path,
    exempt: &[String],
    exempt_lines: &BTreeMap<String, BTreeSet<u32>>,
    base: Option<&str>,
) -> Result<Vec<Survivor>>
Expand description

Run cargo-mutants over the crate at root and return its un-exempted survivors.

With base set, only mutants on the <base>...HEAD changed lines are tested (via cargo-mutants’ --in-diff); without it, the whole crate. exempt is the file-level mutation exempt paths and exempt_lines the line-scoped ones (#226), applied with the determinism guard in evaluate_scoped. cargo-mutants must be installed.