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
impl Eq for Conclusion
impl StructuralPartialEq for Conclusion
Auto Trait Implementations§
impl Freeze for Conclusion
impl RefUnwindSafe for Conclusion
impl Send for Conclusion
impl Sync for Conclusion
impl Unpin for Conclusion
impl UnwindSafe for Conclusion
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)