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
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 there have been any failures.
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
sourceimpl Debug for Conclusion
impl Debug for Conclusion
sourceimpl PartialEq<Conclusion> for Conclusion
impl PartialEq<Conclusion> for Conclusion
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &Conclusion) -> bool
fn ne(&self, other: &Conclusion) -> bool
This method tests for !=
.
impl Eq for Conclusion
impl StructuralEq for Conclusion
impl StructuralPartialEq for Conclusion
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
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.