[][src]Struct mimicaw::Report

#[non_exhaustive]
pub struct Report {
    pub passed: Vec<TestDesc>,
    pub failed: Vec<(TestDesc, Option<Arc<Cow<'static, str>>>)>,
    pub measured: Vec<(TestDesc, (u64, u64))>,
    pub ignored: Vec<TestDesc>,
    pub filtered_out: Vec<TestDesc>,
}

A report on test suite execution.

Fields (Non-exhaustive)

Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
passed: Vec<TestDesc>

Passed test cases.

failed: Vec<(TestDesc, Option<Arc<Cow<'static, str>>>)>

Failed test cases with the error messages.

measured: Vec<(TestDesc, (u64, u64))>

Benchmark results.

ignored: Vec<TestDesc>

Test cases skipped because they do not satisfy the execution conditions.

filtered_out: Vec<TestDesc>

Test cases filtered out.

Methods

impl Report[src]

pub fn status(&self) -> ExitStatus[src]

Return an exit status used as a result of the test process.

pub fn skipped(&self) -> impl Iterator<Item = (&TestDesc, &str)> + '_[src]

Return an iterator of skipped test cases.

Trait Implementations

impl Debug for Report[src]

Auto Trait Implementations

impl RefUnwindSafe for Report

impl Send for Report

impl Sync for Report

impl Unpin for Report

impl UnwindSafe for Report

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.