pub struct ExportTestReachFact {
pub file: String,
pub export_name: String,
pub line: u32,
pub reach: TestReachClass,
pub change: ExportChange,
pub tests: Option<Vec<String>>,
pub tests_total: Option<usize>,
pub test_changed: Option<bool>,
pub mocked_targets: Option<Vec<String>>,
}Expand description
One changed export that needs attention.
Fields§
§file: StringRoot-relative path of the file that declares the export.
export_name: StringThe export name, default for a default export.
line: u321-based line of the export.
reach: TestReachClassThe reach class.
change: ExportChangeWhether the diff adds or changes the declaration.
tests: Option<Vec<String>>Test files that name the export, sorted, at most
TEST_REACH_FILE_CAP. On a mocked-only row these are the mocking
tests. Absent when no test file names the export.
tests_total: Option<usize>Number of test files that name the export, before the cap. Present with
tests.
test_changed: Option<bool>True when one of the test files that name the export changed in this
diff. Present with tests.
mocked_targets: Option<Vec<String>>The mocked modules on the import paths, sorted, at most
TEST_REACH_FILE_CAP. A mocked module can be a barrel in front of
the declaring file. Present only on mocked-only rows.
Trait Implementations§
Source§impl Clone for ExportTestReachFact
impl Clone for ExportTestReachFact
Source§impl Debug for ExportTestReachFact
impl Debug for ExportTestReachFact
impl Eq for ExportTestReachFact
Source§impl PartialEq for ExportTestReachFact
impl PartialEq for ExportTestReachFact
Source§impl Serialize for ExportTestReachFact
impl Serialize for ExportTestReachFact
impl StructuralPartialEq for ExportTestReachFact
Auto Trait Implementations§
impl Freeze for ExportTestReachFact
impl RefUnwindSafe for ExportTestReachFact
impl Send for ExportTestReachFact
impl Sync for ExportTestReachFact
impl Unpin for ExportTestReachFact
impl UnsafeUnpin for ExportTestReachFact
impl UnwindSafe for ExportTestReachFact
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.