Skip to main content

evaluate_normalized

Function evaluate_normalized 

Source
pub fn evaluate_normalized(
    mutants: &[NormalizedMutant],
    whole_file: &[String],
    line_scoped: &BTreeMap<String, BTreeSet<u32>>,
) -> Result<Vec<Survivor>>
Expand description

Gate a normalized result set: drop the survivors lifted by a file- or line-scoped mutation exemption (with the #226 determinism guard), leaving the rule’s findings.

This is the engine-agnostic core each language arm feeds once its adapter has produced NormalizedMutants (#239) — the replacement for the per-engine *_survivors / *_mutated_lines + evaluate_scoped wiring. Survivors are Survived / NoCoverage mutants; the guard reads every viable mutant’s (file, line).