[][src]Struct libtest_mimic::Conclusion

#[must_use]pub struct Conclusion { /* fields omitted */ }

Contains information about the entire test run. Is returned by run_tests.

This type is marked as #[must_use]. Usually, you just call exit() on the result of run_tests to exit the application with the correct exit code. But you can also store this value and inspect its data.

Implementations

impl Conclusion[src]

pub fn exit(&self) -> ![src]

Exits the application with an appropriate error code (0 if all tests have passed, 101 if there have been failures).

pub fn exit_if_failed(&self)[src]

Exits the application with error code 101 if there were any failures. Otherwise, returns normally.

pub fn has_failed(&self) -> bool[src]

Returns whether or not there have been any failures.

pub fn num_filtered_out(&self) -> u64[src]

Returns how many tests were filtered out (either by the filter-in pattern or by --skip arguments).

pub fn num_passed(&self) -> u64[src]

Returns how many tests passed.

pub fn num_failed(&self) -> u64[src]

Returns how many tests failed.

pub fn num_ignored(&self) -> u64[src]

Returns how many tests were ignored.

pub fn num_benches(&self) -> u64[src]

Returns how many benchmark were successfully run.

Trait Implementations

impl Clone for Conclusion[src]

impl Debug for Conclusion[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.