Struct junit_report::TestCase [−][src]
pub struct TestCase { /* fields omitted */ }
One single test case
Methods
impl TestCase
[src]
impl TestCase
pub fn success(name: &str, time: Duration) -> TestCase
[src]
pub fn success(name: &str, time: Duration) -> TestCase
Creates a new successful test case
pub fn is_success(&self) -> bool
[src]
pub fn is_success(&self) -> bool
Check if a test case is successful
pub fn error(name: &str, time: Duration, type_: &str, message: &str) -> TestCase
[src]
pub fn error(name: &str, time: Duration, type_: &str, message: &str) -> TestCase
Creates a new erroneous test case
An erroneous test case is one that encountered an unexpected error condition.
pub fn is_error(&self) -> bool
[src]
pub fn is_error(&self) -> bool
Check if a test case is erroneous
pub fn failure(
name: &str,
time: Duration,
type_: &str,
message: &str
) -> TestCase
[src]
pub fn failure(
name: &str,
time: Duration,
type_: &str,
message: &str
) -> TestCase
Creates a new failed test case
A failed test case is one where an explicit asseriton failed
pub fn is_failure(&self) -> bool
[src]
pub fn is_failure(&self) -> bool
Check if a test case failed