pub struct TestCases {
tests: Vec<(PathBuf, String)>,
path_prefix: PathBuf,
expectation_category: String,
fail_categories: Vec<TestFailure>,
}
Fields§
§tests: Vec<(PathBuf, String)>
§path_prefix: PathBuf
§expectation_category: String
§fail_categories: Vec<TestFailure>
Implementations§
Source§impl TestCases
impl TestCases
fn new( expectation_category: &str, additional_check: impl Fn(&TestConfig) -> bool, ) -> (Self, Vec<TestConfig>)
fn load_tests( &mut self, additional_check: impl Fn(&TestConfig) -> bool, ) -> Vec<TestConfig>
pub(crate) fn process_tests<P, O>( &mut self, configs: Vec<TestConfig>, process: P, ) -> Vec<O>
fn load_expectations(&self, path: &Path) -> (PathBuf, Option<TestExpectation>)
Auto Trait Implementations§
impl Freeze for TestCases
impl RefUnwindSafe for TestCases
impl Send for TestCases
impl Sync for TestCases
impl Unpin for TestCases
impl UnwindSafe for TestCases
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more