Struct modelator::tester::SimpleTester [−][src]
pub struct SimpleTester { /* fields omitted */ }
Expand description
SimpleTester
represents a collection of simple test functions,
where each function can handle a specific kind of input.
Implementations
pub fn add<T, F, R>(&mut self, test: F) where
T: 'static + DeserializeOwned + UnwindSafe + Clone,
F: FnMut(T) -> R + 'static,
R: 'static + Serialize,
pub fn add<T, F, R>(&mut self, test: F) where
T: 'static + DeserializeOwned + UnwindSafe + Clone,
F: FnMut(T) -> R + 'static,
R: 'static + Serialize,
Add a test function to the tester.
Add to the tester a test function that can accept closures as input.
Run the test functions on the provided input.
The first test function that is able to handle this kind of input,
will produce the result. If none of the defined test functions is
able to handle the input, the unhandled
result will be returned.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for SimpleTester
impl !Send for SimpleTester
impl !Sync for SimpleTester
impl Unpin for SimpleTester
impl !UnwindSafe for SimpleTester
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more