Struct junit_report::TestSuiteBuilder
source · 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 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