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_code(&self) -> ExitCode
pub fn exit_code(&self) -> ExitCode
Returns an exit code that can be returned from main
to signal
success/failure to the calling process.
sourcepub fn has_failed(&self) -> bool
pub fn has_failed(&self) -> bool
Returns whether there have been any failures.
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). This uses
process::exit
, meaning that destructors are not ran. Consider
using Self::exit_code
instead for a proper program cleanup.
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. This uses process::exit
, meaning that
destructors are not ran. Consider using Self::exit_code
instead for
a proper program cleanup.
Trait Implementations§
source§impl Clone for Conclusion
impl Clone for Conclusion
source§fn clone(&self) -> Conclusion
fn clone(&self) -> Conclusion
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Conclusion
impl Debug for Conclusion
source§impl PartialEq for Conclusion
impl PartialEq for Conclusion
source§fn eq(&self, other: &Conclusion) -> bool
fn eq(&self, other: &Conclusion) -> bool
self
and other
values to be equal, and is used
by ==
.