pub trait FailingStrategy {
// Required method
fn do_fail_with(&self, failures: &[AssertFailure]);
}Expand description
Defines the behavior when an assertion fails.
This crate provides two implementations:
PanicOnFail- panics when an assertion failsCollectFailures- collectsAssertFailures of assertions that have failed.
Required Methods§
Sourcefn do_fail_with(&self, failures: &[AssertFailure])
fn do_fail_with(&self, failures: &[AssertFailure])
Reacts to an assertion that has failed with the AssertFailures given
as argument.