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]
impl Conclusion
pub fn exit(&self) -> !
[src]
pub fn exit(&self) -> !
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]
pub fn exit_if_failed(&self)
Exits the application with error code 101 if there were any failures. Otherwise, returns normally.
pub fn has_failed(&self) -> bool
[src]
pub fn has_failed(&self) -> bool
Returns whether or not there have been any failures.
pub fn num_filtered_out(&self) -> u64
[src]
pub fn num_filtered_out(&self) -> u64
Returns how many tests were filtered out (either by the filter-in
pattern or by --skip
arguments).
pub fn num_passed(&self) -> u64
[src]
pub fn num_passed(&self) -> u64
Returns how many tests passed.
pub fn num_failed(&self) -> u64
[src]
pub fn num_failed(&self) -> u64
Returns how many tests failed.
pub fn num_ignored(&self) -> u64
[src]
pub fn num_ignored(&self) -> u64
Returns how many tests were ignored.
pub fn num_benches(&self) -> u64
[src]
pub fn num_benches(&self) -> u64
Returns how many benchmark were successfully run.
Trait Implementations
impl Clone for Conclusion
[src]
impl Clone for Conclusion
fn clone(&self) -> Conclusion
[src]
fn clone(&self) -> Conclusion
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for Conclusion
[src]
impl Debug for Conclusion
Auto Trait Implementations
impl Send for Conclusion
impl Send for Conclusion
impl Sync for Conclusion
impl Sync for Conclusion