pub struct TestReachFacts {
pub status: TestReachStatus,
pub masking: TestReachMasking,
pub total: usize,
pub counts: TestReachCounts,
pub exports: Vec<ExportTestReachFact>,
pub exports_omitted: usize,
pub e2e_runner: bool,
}Expand description
How tests reach the value exports that the diff changes.
A changed export is a value export whose declaring statement overlaps an added line. The section is advisory: it never changes the verdict or the exit code.
Fields§
§status: TestReachStatusmeasured, or no-tests when the project has no test files.
masking: TestReachMaskingWhether mock detection is active.
total: usizeNumber of changed value exports.
counts: TestReachCountsNumber of changed exports per reach class.
exports: Vec<ExportTestReachFact>The exports that need attention (mocked-only, none, none-file,
transitive), at most TEST_REACH_EXPORT_CAP. The order is reach
class, then modified before new, then file, line and name. Empty
for no-tests.
exports_omitted: usizeNumber of attention rows left out by the cap.
e2e_runner: boolTrue when the project uses an end-to-end test runner (Playwright or Cypress). End-to-end tests drive the running app and do not import source files, so the reach classes do not count them. Absent when no such runner is present.
Trait Implementations§
Source§impl Clone for TestReachFacts
impl Clone for TestReachFacts
Source§impl Debug for TestReachFacts
impl Debug for TestReachFacts
impl Eq for TestReachFacts
Source§impl PartialEq for TestReachFacts
impl PartialEq for TestReachFacts
Source§impl Serialize for TestReachFacts
impl Serialize for TestReachFacts
impl StructuralPartialEq for TestReachFacts
Auto Trait Implementations§
impl Freeze for TestReachFacts
impl RefUnwindSafe for TestReachFacts
impl Send for TestReachFacts
impl Sync for TestReachFacts
impl Unpin for TestReachFacts
impl UnsafeUnpin for TestReachFacts
impl UnwindSafe for TestReachFacts
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.