Struct credibility::DefaultTestReporter [−][src]
pub struct DefaultTestReporter { /* fields omitted */ }
The default test status reporter. It delays all panics from aver
and aver_eq
invocations to the end of the test block's lifetime;
if any failures occurred, or if the test block returned with an
Err
Result, it panics.
Trait Implementations
impl Default for DefaultTestReporter
[src]
impl Default for DefaultTestReporter
fn default() -> DefaultTestReporter
[src]
fn default() -> DefaultTestReporter
Returns the "default value" for a type. Read more
impl TestReporter for DefaultTestReporter
[src]
impl TestReporter for DefaultTestReporter
fn averred<T: Sized + Debug>(&mut self, result: Result<T>)
[src]
fn averred<T: Sized + Debug>(&mut self, result: Result<T>)
Invoked whenever the result of an aver!
is available. If that result is the thread::Result
's Err
kind, the aver!
failed, indicating that the test should fail. Read more
fn ran<T: Sized + Debug>(&mut self, result: Result<T, Error>)
[src]
fn ran<T: Sized + Debug>(&mut self, result: Result<T, Error>)
Invoked whenever a test block finished. If result is an Err
, indicates that the block failed. This means that the test should abort. Read more
fn tally<'a>(&self, name: &'a str)
[src]
fn tally<'a>(&self, name: &'a str)
Invoked at the end of life of a test block. Read more
Auto Trait Implementations
impl Send for DefaultTestReporter
impl Send for DefaultTestReporter
impl Sync for DefaultTestReporter
impl Sync for DefaultTestReporter