pub struct Harness<S, T> { /* private fields */ }
Available on crate feature
harness
only.Implementations§
source§impl<S, T, I, E> Harness<S, T>
impl<S, T, I, E> Harness<S, T>
pub fn new(root: impl Into<PathBuf>, setup: S, test: T) -> Self
sourcepub fn select<'p>(self, patterns: impl IntoIterator<Item = &'p str>) -> Self
pub fn select<'p>(self, patterns: impl IntoIterator<Item = &'p str>) -> Self
Path patterns for selecting input files
This used gitignore syntax
sourcepub fn action_env(self, var_name: &str) -> Self
pub fn action_env(self, var_name: &str) -> Self
Read the failure action from an environment variable
Auto Trait Implementations§
impl<S, T> RefUnwindSafe for Harness<S, T>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<S, T> Send for Harness<S, T>
impl<S, T> Sync for Harness<S, T>
impl<S, T> Unpin for Harness<S, T>
impl<S, T> UnwindSafe for Harness<S, T>where
S: UnwindSafe,
T: UnwindSafe,
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