pub struct Report {Show 26 fields
pub schema_version: u32,
pub package: String,
pub mutants: Option<Vec<Candidate>>,
pub analysis: Analysis,
pub audit: Option<Audit>,
pub evaluation: Option<Evaluation>,
pub sites: usize,
pub skipped_sites: usize,
pub skipped: Vec<SkippedSite>,
pub unviable_mutants: usize,
pub mutants_not_built: usize,
pub mutants_not_evaluated: usize,
pub mutants_not_compiled: usize,
pub mutants_run: usize,
pub mutants_killed: usize,
pub mutants_timed_out: usize,
pub mutants_survived: usize,
pub survivor_breakdown: SurvivorBreakdown,
pub timeout_rechecks: TimeoutRechecks,
pub findings: Vec<Finding>,
pub suppressed: usize,
pub baseline: Option<PathBuf>,
pub unassessed_test_changes: Vec<String>,
pub unreached: Vec<Location>,
pub unstable: Vec<Location>,
pub weakened: Vec<Location>,
}Fields§
§schema_version: u32§package: String§mutants: Option<Vec<Candidate>>§analysis: Analysis§audit: Option<Audit>Present when the run was asked to check itself.
evaluation: Option<Evaluation>§sites: usize§skipped_sites: usizeSites that could not be instrumented (the probe did not compile there).
skipped: Vec<SkippedSite>§unviable_mutants: usizeValues a function’s body was to be replaced by that do not have its type
(Default::default() for a type without a default): those mutants do not exist.
mutants_not_built: usizeMutants that need a build of their own and were not asked for (--rebuild).
mutants_not_evaluated: usizeMutants that could not be run as what they are (a range that ends at the largest value of its type cannot be made to include it): neither killed nor survivors.
mutants_not_compiled: usizeOf those, the mutants of code that is not part of this build (another target’s
file, or a cfg the features turn off).
mutants_run: usize§mutants_killed: usize§mutants_timed_out: usizeKilled mutants that were stopped by the timeout (typically an endless loop).
This is a subset of mutants_killed.
mutants_survived: usizeEvaluated mutants that passed the tests (mutants_run - mutants_killed).
survivor_breakdown: SurvivorBreakdownComplete accounting of mutants_survived by disposition.
timeout_rechecks: TimeoutRechecks§findings: Vec<Finding>§suppressed: usizeFindings left out because of a // tmt:ignore comment or the baseline.
baseline: Option<PathBuf>Path to the baseline file applied during this run, if any.
unassessed_test_changes: Vec<String>Integration test files changed since --since whose weakening was not evaluated
because --since scopes mutations to changed production files.
unreached: Vec<Location>Code no test executes.
unstable: Vec<Location>Survivors predicted from the trace that a re-run killed: the tests are not deterministic.
weakened: Vec<Location>Findings in code that did not change, of a file whose tests did (--since): the
tests as they were at the revision found these mutants out.
Implementations§
Source§impl Report
impl Report
Sourcepub fn counts_reconcile(&self) -> bool
pub fn counts_reconcile(&self) -> bool
Whether the mutant counts are internally consistent:
mutants_run == mutants_killed + mutants_survivedmutants_timed_out <= mutants_killedmutants_survived == survivor_breakdown.checked_total()
Sourcepub fn sort_findings(&mut self)
pub fn sort_findings(&mut self)
Puts the findings in reading order. Sites are numbered as they are discovered, and a statement is discovered before the expressions of the statements above it.