pub struct Fixtures {
pub passing: Job,
pub failing: Job,
pub erroring: Job,
pub slow: Job,
pub in_directory: Option<Job>,
}Expand description
Jobs meaningful to one backend.
Supplied by the caller because “a command that exits 3” is spelled differently in a VM than in a subprocess, which is exactly what the seam abstracts. The checks are about the verdicts, never about the commands that produced them.
Fields§
§passing: JobA command that exits zero.
failing: JobA command that exits nonzero.
erroring: JobA job the provider cannot start at all.
slow: JobA job that outlives its deadline.
in_directory: Option<Job>A job that passes only if the executor ran it in
Job::directory, and fails otherwise. None for a backend
with no directory to honor – an isolation boundary the caller’s
filesystem does not cross is the ordinary case, and skipping is
the honest answer rather than a failure.
Auto Trait Implementations§
impl Freeze for Fixtures
impl RefUnwindSafe for Fixtures
impl Send for Fixtures
impl Sync for Fixtures
impl Unpin for Fixtures
impl UnsafeUnpin for Fixtures
impl UnwindSafe for Fixtures
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