Struct libtest_mimic::Conclusion[][src]

#[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.

Methods

impl Conclusion
[src]

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 or not there have been any failures.

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

Returns how many tests passed.

Returns how many tests failed.

Returns how many tests were ignored.

Returns how many benchmark were successfully run.

Trait Implementations

impl Clone for Conclusion
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Conclusion
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Conclusion

impl Sync for Conclusion