pub struct TestResult {
pub passed: Box<[String]>,
pub failed: Box<[String]>,
pub total: usize,
pub failure_count: usize,
pub ok: bool,
pub report: String,
}Expand description
An immutable summary produced by VanillaTest::report.
Fields§
§passed: Box<[String]>Numbered descriptions that passed, in test order.
failed: Box<[String]>Numbered descriptions that failed, in test order.
total: usizeTotal number of completed tests.
failure_count: usizeNumber of failed tests.
ok: booltrue exactly when failure_count is zero.
report: StringPlain-text report containing the summary and both outcome lists.
Trait Implementations§
Source§impl Debug for TestResult
impl Debug for TestResult
impl Eq for TestResult
Source§impl PartialEq for TestResult
impl PartialEq for TestResult
impl StructuralPartialEq for TestResult
Auto Trait Implementations§
impl Freeze for TestResult
impl RefUnwindSafe for TestResult
impl Send for TestResult
impl Sync for TestResult
impl Unpin for TestResult
impl UnsafeUnpin for TestResult
impl UnwindSafe for TestResult
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