pub struct TestResult {
pub name: String,
pub passed: bool,
pub duration_ms: u64,
pub error_output: Option<String>,
}Expand description
Result of running a single test
Fields§
§name: StringName of the test function
passed: boolWhether the test passed
duration_ms: u64Duration in milliseconds
error_output: Option<String>Error output if test failed
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TestResult
impl RefUnwindSafe for TestResult
impl Send for TestResult
impl Sync for TestResult
impl Unpin 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