pub struct Harness<S, T> { /* private fields */ }
Available on crate feature
harness
only.Implementations§
source§impl<S, T, I, E> Harness<S, T>where
I: Display,
E: Display,
S: Fn(PathBuf) -> Case + Send + Sync + 'static,
T: Fn(&Path) -> Result<I, E> + Send + Sync + 'static + Clone,
impl<S, T, I, E> Harness<S, T>where I: Display, E: Display, S: Fn(PathBuf) -> Case + Send + Sync + 'static, T: Fn(&Path) -> Result<I, E> + Send + Sync + 'static + Clone,
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