Testable

Trait Testable 

Source
pub trait Testable {
    // Required method
    fn test(&self, context: &Context) -> TestResults;

    // Provided method
    fn run(&self, context: &mut Context) { ... }
}
Expand description

Any tests to run with a testing context

Required Methods§

Source

fn test(&self, context: &Context) -> TestResults

Provided Methods§

Source

fn run(&self, context: &mut Context)

Implementors§

Source§

impl<T, G, F, P> Testable for Ensure<G, F>
where G: Generator<Item = T>, P: Property, F: Fn(T) -> P, T: Debug + 'static,