pub struct TestCaseBuilder {
pub testcase: TestCase,
}Expand description
Builder for TestCase objects.
Fields§
§testcase: TestCaseImplementations§
Source§impl TestCaseBuilder
Auto-generated by derive_getters::Getters.
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 duplicate 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 Freeze for TestCaseBuilder
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