pub enum TestOutcome {
Passed,
Failed,
Skipped,
Error,
}Expand description
Outcome of one test from a JUnit report.
Variants§
Passed
Passed.
Failed
Failed (an assertion, a <failure> in JUnit).
Skipped
Skipped or ignored.
Error
Errored before or outside an assertion (a <error> in JUnit: setup,
collection, an unexpected exception).
Implementations§
Source§impl TestOutcome
impl TestOutcome
Sourcepub const fn is_failing(self) -> bool
pub const fn is_failing(self) -> bool
Whether the test counts as failing (for regressions and digests).
Trait Implementations§
Source§impl Clone for TestOutcome
impl Clone for TestOutcome
impl Copy for TestOutcome
Source§impl Debug for TestOutcome
impl Debug for TestOutcome
Source§impl<'de> Deserialize<'de> for TestOutcome
impl<'de> Deserialize<'de> for TestOutcome
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 Eq for TestOutcome
Source§impl JsonSchema for TestOutcome
impl JsonSchema for TestOutcome
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for TestOutcome
impl PartialEq for TestOutcome
Source§impl Serialize for TestOutcome
impl Serialize for TestOutcome
impl StructuralPartialEq for TestOutcome
Auto Trait Implementations§
impl Freeze for TestOutcome
impl RefUnwindSafe for TestOutcome
impl Send for TestOutcome
impl Sync for TestOutcome
impl Unpin for TestOutcome
impl UnsafeUnpin for TestOutcome
impl UnwindSafe for TestOutcome
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