[−][src]Struct libtest_mimic::Conclusion
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.
Implementations
impl Conclusion
[src]
pub fn exit(&self) -> !
[src]
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]
Exits the application with error code 101 if there were any failures. Otherwise, returns normally.
pub fn has_failed(&self) -> bool
[src]
Returns whether or not there have been any failures.
pub fn num_filtered_out(&self) -> u64
[src]
Returns how many tests were filtered out (either by the filter-in
pattern or by --skip
arguments).
pub fn num_passed(&self) -> u64
[src]
Returns how many tests passed.
pub fn num_failed(&self) -> u64
[src]
Returns how many tests failed.
pub fn num_ignored(&self) -> u64
[src]
Returns how many tests were ignored.
pub fn num_benches(&self) -> u64
[src]
Returns how many benchmark were successfully run.
Trait Implementations
impl Clone for Conclusion
[src]
fn clone(&self) -> Conclusion
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Conclusion
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,