pub enum Outcome {
Passed,
Failed {
message: String,
},
Skipped {
reason: Option<String>,
},
Error {
message: String,
},
XFail {
reason: Option<String>,
},
XPass,
}Expand description
Outcome of a single test execution.
Variants§
Passed
Test passed.
Failed
Test failed with assertion or other failure.
Skipped
Test was skipped.
Error
Test encountered an error (not a test failure).
XFail
Test was expected to fail and did fail.
XPass
Test was expected to fail but passed.
Implementations§
Source§impl Outcome
impl Outcome
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Returns true if this outcome represents a successful test.
Sourcepub fn is_failure(&self) -> bool
pub fn is_failure(&self) -> bool
Returns true if this outcome represents a failure that should be counted.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Outcome
impl<'de> Deserialize<'de> for Outcome
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Outcome
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnwindSafe for Outcome
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