pub struct TestReport {
pub modules: Vec<TestModuleResult>,
}Expand description
Aggregate test report.
Fields§
§modules: Vec<TestModuleResult>All module results.
Implementations§
Source§impl TestReport
impl TestReport
Sourcepub fn new(modules: Vec<TestModuleResult>) -> Self
pub fn new(modules: Vec<TestModuleResult>) -> Self
Create a new report.
Sourcepub fn module(self, module: TestModuleResult) -> Self
pub fn module(self, module: TestModuleResult) -> Self
Add a module to the report.
Sourcepub fn counts(&self) -> TestCounts
pub fn counts(&self) -> TestCounts
Get summary counts for the report.
Trait Implementations§
Source§impl Clone for TestReport
impl Clone for TestReport
Source§fn clone(&self) -> TestReport
fn clone(&self) -> TestReport
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 TestReport
impl RefUnwindSafe for TestReport
impl Send for TestReport
impl Sync for TestReport
impl Unpin for TestReport
impl UnsafeUnpin for TestReport
impl UnwindSafe for TestReport
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