pub struct MutantTestReach {
pub reach: TestReachClass,
pub export_name: Option<String>,
pub tests: Vec<String>,
pub mocked_targets: Vec<String>,
}Expand description
How tests reach the code of one mutant in the module graph. The class gives a static reason why no test covers the mutant.
A mutant in the top-level statement that declares a value export gets the
class of that export. A mutant outside each such statement gets the class
of its file: none-file when no test loads the file, mocked-only when no
test loads the file and a mock explains an export of the file, and none
when a test loads the file.
Fields§
§reach: TestReachClassThe reach class. The same open set as the test reach of audit.
export_name: Option<String>The export whose declaration holds the mutant. Absent for a mutant outside each value export declaration.
tests: Vec<String>For mocked-only: the test files whose references a mock removed,
sorted.
mocked_targets: Vec<String>For mocked-only: the mocked modules on the reference paths, sorted.
A mocked module can be a barrel in front of the file of the mutant.
Trait Implementations§
Source§impl Clone for MutantTestReach
impl Clone for MutantTestReach
Source§impl Debug for MutantTestReach
impl Debug for MutantTestReach
impl Eq for MutantTestReach
Source§impl PartialEq for MutantTestReach
impl PartialEq for MutantTestReach
Source§impl Serialize for MutantTestReach
impl Serialize for MutantTestReach
impl StructuralPartialEq for MutantTestReach
Auto Trait Implementations§
impl Freeze for MutantTestReach
impl RefUnwindSafe for MutantTestReach
impl Send for MutantTestReach
impl Sync for MutantTestReach
impl Unpin for MutantTestReach
impl UnsafeUnpin for MutantTestReach
impl UnwindSafe for MutantTestReach
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.