Skip to main content

Finding

Enum Finding 

Source
pub enum Finding {
    InputGap {
        at: Location,
        survivors: Vec<String>,
        survivor_count: u128,
        add_tests: Vec<String>,
        observed: Option<String>,
        verified: bool,
    },
    AssertionGap {
        at: Location,
        survivors: Vec<String>,
        tests: Vec<String>,
        effects: Vec<String>,
        effects_of: Option<String>,
        witness: Option<VerifiedWitness>,
    },
    Survivor {
        at: Location,
        survivors: Vec<String>,
        witness: Option<VerifiedWitness>,
        change_since: Option<String>,
        advice: Option<String>,
    },
}

Variants§

§

InputGap

No test input can tell these mutants from the original.

Fields

§survivors: Vec<String>

Source-level form of mutants that pass every test.

§survivor_count: u128

How many mutants the gap lets through in total.

§add_tests: Vec<String>

Inputs to add, in words.

§observed: Option<String>

What the tests did feed the comparison.

§verified: bool

Whether the tests were re-run against a survivor to confirm.

§

AssertionGap

Tests execute the changed behaviour, and still pass.

Fields

§survivors: Vec<String>
§tests: Vec<String>

Tests whose execution changed under the mutants but did not fail.

§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.

§effects_of: Option<String>

The mutant whose effects those are, as it is written in survivors.

§

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

§survivors: Vec<String>
§change_since: Option<String>

Set when the mutant is a change undone (--since): the revision whose code was put back.

§advice: Option<String>

What to add, when the kind of mutant says it and nothing was verified.

Implementations§

Source§

impl Finding

Source

pub fn at(&self) -> &Location

Source

pub fn at_mut(&mut self) -> &mut Location

Source

pub fn survivors(&self) -> &[String]

Source

pub fn kind(&self) -> &'static str

The kind as the JSON report and the names of findings spell it.

Trait Implementations§

Source§

impl Clone for Finding

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Finding

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Finding

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Finding

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Finding

Auto Trait Implementations§

§

impl Forget for Finding

§

impl Freeze for Finding

§

impl Move for Finding

§

impl RefUnwindSafe for Finding

§

impl Send for Finding
where RawVecInner: Send,

§

impl Sync for Finding
where RawVecInner: Sync,

§

impl Unpin for Finding
where *const u8 is !null: Unpin,

§

impl UnsafeUnpin for Finding

§

impl UnwindSafe for Finding
where RawVecInner: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.