pub struct JunitTestCase {
pub name: String,
pub classname: String,
pub duration: Duration,
pub failure: Option<JunitFailure>,
}Expand description
A single test case within a JUnit report.
Fields§
§name: StringName of the test case.
classname: StringName of the class/suite this case belongs to.
duration: DurationDuration of this specific test.
failure: Option<JunitFailure>Failure message, if the test failed.
Implementations§
Source§impl JunitTestCase
impl JunitTestCase
Sourcepub fn from_check_result(
result: &CheckResult,
classname: &str,
duration: Duration,
) -> Self
pub fn from_check_result( result: &CheckResult, classname: &str, duration: Duration, ) -> Self
Creates a test case from a CheckResult.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JunitTestCase
impl RefUnwindSafe for JunitTestCase
impl Send for JunitTestCase
impl Sync for JunitTestCase
impl Unpin for JunitTestCase
impl UnsafeUnpin for JunitTestCase
impl UnwindSafe for JunitTestCase
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