pub struct TestResults {
pub results: HashMap<String, TestResult>,
pub total_tests: usize,
pub passed_tests: usize,
pub failed_tests: usize,
}Fields§
§results: HashMap<String, TestResult>§total_tests: usize§passed_tests: usize§failed_tests: usizeImplementations§
Source§impl TestResults
impl TestResults
pub fn new() -> Self
pub fn add_result(&mut self, name: String, result: TestResult)
Trait Implementations§
Source§impl Clone for TestResults
impl Clone for TestResults
Source§fn clone(&self) -> TestResults
fn clone(&self) -> TestResults
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 moreSource§impl Debug for TestResults
impl Debug for TestResults
Auto Trait Implementations§
impl Freeze for TestResults
impl RefUnwindSafe for TestResults
impl Send for TestResults
impl Sync for TestResults
impl Unpin for TestResults
impl UnwindSafe for TestResults
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