pub struct TestSummary {
pub total: usize,
pub passed: usize,
pub failed: usize,
pub compile_failures: usize,
pub file_results: Vec<FileTestResults>,
}Expand description
Summary of all test results
Fields§
§total: usizeTotal tests run
passed: usizeTests passed
failed: usizeTests failed
compile_failures: usizeFiles that failed to compile
file_results: Vec<FileTestResults>Results by file
Implementations§
Source§impl TestSummary
impl TestSummary
Sourcepub fn has_failures(&self) -> bool
pub fn has_failures(&self) -> bool
Returns true if any tests failed or any files failed to compile
Trait Implementations§
Source§impl Debug for TestSummary
impl Debug for TestSummary
Source§impl Default for TestSummary
impl Default for TestSummary
Source§fn default() -> TestSummary
fn default() -> TestSummary
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TestSummary
impl RefUnwindSafe for TestSummary
impl Send for TestSummary
impl Sync for TestSummary
impl Unpin for TestSummary
impl UnwindSafe for TestSummary
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