[−][src]Enum junit_parser::TestStatus
Status of a test case
Variants
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]
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]
pub fn clone(&self) -> TestStatus
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TestStatus
[src]
Auto Trait Implementations
impl RefUnwindSafe for TestStatus
impl Send for TestStatus
impl Sync for TestStatus
impl Unpin for TestStatus
impl UnwindSafe for TestStatus
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,