pub struct MutationSummary {
pub counts: MutationStatusCounts,
pub score: Option<f64>,
pub coverage: Option<f64>,
}Expand description
The totals of a run.
Fields§
§counts: MutationStatusCountsThe number of mutants for each status.
score: Option<f64>The mutation score over the executed mutants, a fraction from 0 to 1:
(killed + timeout) / (killed + timeout + survived). null when no
mutant ran to a tested result. --min-score and mutation.minScore
compare this value in percent.
coverage: Option<f64>The share of mutants that a test reaches, a fraction from 0 to 1:
covered / (covered + no_coverage) over the whole plan. covered
counts each executed mutant with a covering test and each pending
mutant that a passing dry-run test covers. A pending mutant that no
dry-run test covers is no_coverage, so a run that --max-mutants
caps reports the coverage of the full run. equivalent and pruned
mutants never count. null when no mutant is covered or unreached.
Implementations§
Source§impl MutationSummary
impl MutationSummary
Sourcepub fn from_results(results: &[MutantResult]) -> Self
pub fn from_results(results: &[MutantResult]) -> Self
The totals, the score and the coverage of results.