pub enum TestRunStatus {
Passed,
Failed {
code: Option<i32>,
},
}Expand description
Outcome of one test executable.
Variants§
Passed
Process exited with status 0.
Failed
Process exited with a non-zero status. The exit status is
included so callers can render (exit code N).
Implementations§
Source§impl TestRunStatus
impl TestRunStatus
Sourcepub const fn is_success(self) -> bool
pub const fn is_success(self) -> bool
true for successful outcomes only.
Trait Implementations§
Source§impl Clone for TestRunStatus
impl Clone for TestRunStatus
Source§fn clone(&self) -> TestRunStatus
fn clone(&self) -> TestRunStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TestRunStatus
Source§impl Debug for TestRunStatus
impl Debug for TestRunStatus
impl Eq for TestRunStatus
Source§impl PartialEq for TestRunStatus
impl PartialEq for TestRunStatus
Source§fn eq(&self, other: &TestRunStatus) -> bool
fn eq(&self, other: &TestRunStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TestRunStatus
Auto Trait Implementations§
impl Freeze for TestRunStatus
impl RefUnwindSafe for TestRunStatus
impl Send for TestRunStatus
impl Sync for TestRunStatus
impl Unpin for TestRunStatus
impl UnsafeUnpin for TestRunStatus
impl UnwindSafe for TestRunStatus
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.