Trait fluse::Check[][src]

pub trait Check {
    fn check(&self, f: &mut FnMut(&Outcome));

    fn check_ok(&self, f: &mut FnMut(&Outcome)) -> Summary { ... }
}

A trait for checks that can be implemented.

Required Methods

Runs the check.

This is the only method that is required by implementors.

The implementation should call f for each check that was run, so that the caller gets notified about the outcome.

Provided Methods

Run the check and return a summary.

This method runs the check and records the calls to the f parameter, collecting a summary over all of them.

Implementors