Struct libtest_mimic::Conclusion
source · 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
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§
source§impl Conclusion
impl Conclusion
sourcepub fn exit(&self) -> !
pub fn exit(&self) -> !
Exits the application with an appropriate error code (0 if all tests have passed, 101 if there have been failures).
sourcepub fn exit_if_failed(&self)
pub fn exit_if_failed(&self)
Exits the application with error code 101 if there were any failures. Otherwise, returns normally.
sourcepub fn has_failed(&self) -> bool
pub fn has_failed(&self) -> bool
Returns whether there have been any failures.
Trait Implementations§
source§impl Clone for Conclusion
impl Clone for Conclusion
source§fn clone(&self) -> Conclusion
fn clone(&self) -> Conclusion
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Conclusion
impl Debug for Conclusion
source§impl PartialEq<Conclusion> for Conclusion
impl PartialEq<Conclusion> for Conclusion
source§fn eq(&self, other: &Conclusion) -> bool
fn eq(&self, other: &Conclusion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.