[][src]Enum junit_parser::TestStatus

pub enum TestStatus {
    Success,
    Error(TestError),
    Failure(TestFailure),
    Skipped(TestSkipped),
}

Status of a test case

Variants

Success

Success

Error(TestError)

Test case has a <error /> tag

Failure(TestFailure)

Test case has a <failure /> tag

Skipped(TestSkipped)

Test case has a <skipped /> tag

Implementations

impl TestStatus[src]

pub fn is_success(&self) -> bool[src]

Returns true if the TestStatus is Success.

pub fn is_error(&self) -> bool[src]

Returns true if the TestStatus is Error(_).

pub fn error_as_ref<'a>(&'a self) -> &'a TestError[src]

Returns the contained Error(_) value as a reference

Panics

Panics if the value is not an Errror(_)

pub fn is_failure(&self) -> bool[src]

Returns true if the TestStatus is Failure(_).

pub fn failure_as_ref<'a>(&'a self) -> &'a TestFailure[src]

Returns the contained Failure(_) value as a reference

Panics

Panics if the value is not a Failure(_)

pub fn is_skipped(&self) -> bool[src]

Returns true if the TestStatus is Skipped(_).

pub fn skipped_as_ref<'a>(&'a self) -> &'a TestSkipped[src]

Returns the contained Skipped(_) value as a reference

Panics

Panics if the value is not a Skipped(_)

Trait Implementations

impl Clone for TestStatus[src]

impl Debug for TestStatus[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.