Skip to main content

Fixtures

Struct Fixtures 

Source
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: Job

A command that exits zero.

§failing: Job

A command that exits nonzero.

§erroring: Job

A job the provider cannot start at all.

§slow: Job

A 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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.