Struct libtest_mimic::Conclusion
source · [−]pub struct Conclusion { /* private fields */ }
Expand description
Implementations
sourceimpl 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 or not there have been any failures.
sourcepub fn num_filtered_out(&self) -> u64
pub fn num_filtered_out(&self) -> u64
Returns how many tests were filtered out (either by the filter-in
pattern or by --skip
arguments).
sourcepub fn num_passed(&self) -> u64
pub fn num_passed(&self) -> u64
Returns how many tests passed.
sourcepub fn num_failed(&self) -> u64
pub fn num_failed(&self) -> u64
Returns how many tests failed.
sourcepub fn num_ignored(&self) -> u64
pub fn num_ignored(&self) -> u64
Returns how many tests were ignored.
sourcepub fn num_benches(&self) -> u64
pub fn num_benches(&self) -> u64
Returns how many benchmark were successfully run.
Trait Implementations
sourceimpl Clone for Conclusion
impl Clone for Conclusion
sourcefn clone(&self) -> Conclusion
fn clone(&self) -> Conclusion
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for Conclusion
impl Send for Conclusion
impl Sync for Conclusion
impl Unpin for Conclusion
impl UnwindSafe for Conclusion
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more