pub struct TestRow {
pub file: String,
pub test_defs: Vec<String>,
pub lines: Vec<usize>,
pub ref_count: usize,
pub heuristic: bool,
pub tier: Option<HeuristicTier>,
pub via: TestVia,
}Expand description
One row of a tests model: a test file, the test-carrying test_defs in
it (possibly empty for a Project-vouched row – a harness file in a test
project need not declare any attributed method itself), the lines at
which it references the symbol, the ref_count, whether the reference was
guessed (heuristic), and which vouch (via) put the file in this model
at all.
Fields§
§file: StringThe file value.
test_defs: Vec<String>The test defs value.
lines: Vec<usize>The lines value.
ref_count: usizeThe ref count value.
heuristic: boolThe heuristic value.
tier: Option<HeuristicTier>Which heuristic tier stands behind this FILE’s references. A row folds
every reference the file makes, so one extension edge among them names
the whole row – same rule as [InboundRow::tier], applied to a set.
via: TestViaWhich vouch (attribute or project) put this file in the model.
Trait Implementations§
impl StructuralPartialEq for TestRow
Auto Trait Implementations§
impl Freeze for TestRow
impl RefUnwindSafe for TestRow
impl Send for TestRow
impl Sync for TestRow
impl Unpin for TestRow
impl UnsafeUnpin for TestRow
impl UnwindSafe for TestRow
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more