pub struct TestSuiteBuilder {
pub testsuite: TestSuite,
}
Expand description
Builder for TestSuite
objects.
Fields§
§testsuite: TestSuite
Implementations§
Source§impl TestSuiteBuilder
impl TestSuiteBuilder
Auto-generated by derive_getters::Getters
.
Source§impl TestSuiteBuilder
impl TestSuiteBuilder
Sourcepub fn add_testcase(&mut self, testcase: TestCase) -> &mut Self
pub fn add_testcase(&mut self, testcase: TestCase) -> &mut Self
Add a TestCase
to the TestSuiteBuilder
.
Sourcepub fn add_testcases(
&mut self,
testcases: impl IntoIterator<Item = TestCase>,
) -> &mut Self
pub fn add_testcases( &mut self, testcases: impl IntoIterator<Item = TestCase>, ) -> &mut Self
Add several TestCase
s from a Vec.
Sourcepub fn set_timestamp(&mut self, timestamp: OffsetDateTime) -> &mut Self
pub fn set_timestamp(&mut self, timestamp: OffsetDateTime) -> &mut Self
Set the timestamp of the TestSuiteBuilder
.
By default the timestamp is set to the time when the TestSuiteBuilder
was created.
pub fn set_system_out(&mut self, system_out: &str) -> &mut Self
pub fn set_system_err(&mut self, system_err: &str) -> &mut Self
Trait Implementations§
Source§impl Clone for TestSuiteBuilder
impl Clone for TestSuiteBuilder
Source§fn clone(&self) -> TestSuiteBuilder
fn clone(&self) -> TestSuiteBuilder
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 Freeze for TestSuiteBuilder
impl RefUnwindSafe for TestSuiteBuilder
impl Send for TestSuiteBuilder
impl Sync for TestSuiteBuilder
impl Unpin for TestSuiteBuilder
impl UnwindSafe for TestSuiteBuilder
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