pub struct Conclusion {
    pub num_filtered_out: u64,
    pub num_passed: u64,
    pub num_failed: u64,
    pub num_ignored: u64,
    pub num_measured: u64,
}
Expand description

Contains information about the entire test run. Is returned byrun.

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

Fields§

§num_filtered_out: u64

Number of tests and benchmarks that were filtered out (either by the filter-in pattern or by --skip arguments).

§num_passed: u64

Number of passed tests.

§num_failed: u64

Number of failed tests and benchmarks.

§num_ignored: u64

Number of ignored tests and benchmarks.

§num_measured: u64

Number of benchmarks that successfully ran.

Implementations§

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

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

Returns whether there have been any failures.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.