pub enum Finding {
InputGap {
at: Location,
survivors: Vec<String>,
survivor_count: u128,
add_tests: Vec<String>,
observed: Option<String>,
verified: bool,
likely_equivalent: Option<LikelyEquivalent>,
},
AssertionGap {
at: Location,
survivors: Vec<String>,
tests: Vec<String>,
effects: Vec<String>,
effects_of: Option<String>,
witness: Option<VerifiedWitness>,
likely_equivalent: Option<LikelyEquivalent>,
},
Survivor {
at: Location,
survivors: Vec<String>,
witness: Option<VerifiedWitness>,
change_since: Option<String>,
advice: Option<String>,
likely_equivalent: Option<LikelyEquivalent>,
},
}Variants§
InputGap
No test input can tell these mutants from the original.
Fields
likely_equivalent: Option<LikelyEquivalent>Present when the gap is statically likely to be equivalent.
AssertionGap
Tests execute the changed behaviour, and still pass.
Fields
effects: Vec<String>What one surviving mutant changes later in those tests: the places an assertion could catch it. Empty when that was not looked into.
witness: Option<VerifiedWitness>likely_equivalent: Option<LikelyEquivalent>Present when the gap is statically likely to be equivalent.
Survivor
A mutant that was built on its own passes every test, and nothing was recorded
that says why: whether no test runs the code (nothing can be recorded in a
const fn), or one does and does not look at the result.
Fields
witness: Option<VerifiedWitness>change_since: Option<String>Set when the mutant is a change undone (--since): the revision whose code
was put back.
likely_equivalent: Option<LikelyEquivalent>Present when the survivor is statically likely to be equivalent.
Implementations§
Source§impl Finding
impl Finding
pub fn at(&self) -> &Location
pub fn at_mut(&mut self) -> &mut Location
pub fn survivors(&self) -> &[String]
Sourcepub fn kind(&self) -> &'static str
pub fn kind(&self) -> &'static str
The kind as the JSON report and the names of findings spell it.