Struct junit_report::TestCase
source · pub struct TestCase { /* private fields */ }
Expand description
One single test case
Implementations§
source§impl TestCase
impl TestCase
sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Check if a TestCase
is successful
sourcepub fn error(name: &str, time: Duration, type_: &str, message: &str) -> TestCase
pub fn error(name: &str, time: Duration, type_: &str, message: &str) -> TestCase
Creates a new erroneous TestCase
An erroneous TestCase
is one that encountered an unexpected error condition.
sourcepub fn failure(name: &str, time: Duration, type_: &str, message: &str) -> TestCase
pub fn failure(name: &str, time: Duration, type_: &str, message: &str) -> TestCase
Creates a new failed TestCase
A failed TestCase
is one where an explicit assertion failed
sourcepub fn is_failure(&self) -> bool
pub fn is_failure(&self) -> bool
Check if a TestCase
failed