pub struct TestPlan { /* private fields */ }Expand description
A finalized, ordered list of test executables to run.
Ordering is deterministic: by package name, then by target
name. Build it with plan_tests and consume it with
run_tests. Empty plans are allowed; the CLI decides
whether an empty plan is an error or a clean no-op.
Implementations§
Source§impl TestPlan
impl TestPlan
Sourcepub fn iter(&self) -> Iter<'_, TestExecutable>
pub fn iter(&self) -> Iter<'_, TestExecutable>
Iterate executables in the plan’s documented order.
Sourcepub fn for_each_executable_mut(&mut self, f: impl FnMut(&mut TestExecutable))
pub fn for_each_executable_mut(&mut self, f: impl FnMut(&mut TestExecutable))
Apply f to every executable in the plan. Used by the
orchestration layer to attach a CABIN_* env overlay
after planning without exposing the executables vec
directly.
Trait Implementations§
Source§impl<'a> IntoIterator for &'a TestPlan
impl<'a> IntoIterator for &'a TestPlan
Auto Trait Implementations§
impl Freeze for TestPlan
impl RefUnwindSafe for TestPlan
impl Send for TestPlan
impl Sync for TestPlan
impl Unpin for TestPlan
impl UnsafeUnpin for TestPlan
impl UnwindSafe for TestPlan
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