Struct junit_report::TestCaseBuilder
source · pub struct TestCaseBuilder {
pub testcase: TestCase,
}
Expand description
Builder for TestCase
objects.
Fields§
§testcase: TestCase
Implementations§
source§impl TestCaseBuilder
impl TestCaseBuilder
Auto-generated by derive_getters::Getters
.
source§impl TestCaseBuilder
impl TestCaseBuilder
sourcepub fn success(name: &str, time: Duration) -> Self
pub fn success(name: &str, time: Duration) -> Self
Creates a new TestCaseBuilder for a successful TestCase
sourcepub fn set_classname(&mut self, classname: &str) -> &mut Self
pub fn set_classname(&mut self, classname: &str) -> &mut Self
Set the classname
for the TestCase
sourcepub fn set_filepath(&mut self, filepath: &str) -> &mut Self
pub fn set_filepath(&mut self, filepath: &str) -> &mut Self
Set the file
for the TestCase
sourcepub fn set_system_out(&mut self, system_out: &str) -> &mut Self
pub fn set_system_out(&mut self, system_out: &str) -> &mut Self
Set the system_out
for the TestCase
sourcepub fn set_system_err(&mut self, system_err: &str) -> &mut Self
pub fn set_system_err(&mut self, system_err: &str) -> &mut Self
Set the system_err
for the TestCase
sourcepub fn error(name: &str, time: Duration, type_: &str, message: &str) -> Self
pub fn error(name: &str, time: Duration, type_: &str, message: &str) -> Self
Creates a new TestCaseBuilder for an erroneous TestCase
An erroneous TestCase
is one that encountered an unexpected error condition.
sourcepub fn failure(name: &str, time: Duration, type_: &str, message: &str) -> Self
pub fn failure(name: &str, time: Duration, type_: &str, message: &str) -> Self
Creates a new TestCaseBuilder for a failed TestCase
A failed TestCase
is one where an explicit assertion failed
Trait Implementations§
source§impl Clone for TestCaseBuilder
impl Clone for TestCaseBuilder
source§fn clone(&self) -> TestCaseBuilder
fn clone(&self) -> TestCaseBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for TestCaseBuilder
impl Send for TestCaseBuilder
impl Sync for TestCaseBuilder
impl Unpin for TestCaseBuilder
impl UnwindSafe for TestCaseBuilder
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