pub struct TestFailure {
pub name: String,
pub file: Option<String>,
pub line: Option<u32>,
pub message: String,
pub criticality: Criticality,
}Expand description
Information about a single test failure
Fields§
§name: StringTest name (e.g., “test_divide_by_zero”)
file: Option<String>Test file path
line: Option<u32>Line number where failure occurred
message: StringError message
criticality: CriticalityCriticality (from weighted tests if matched)
Trait Implementations§
Source§impl Clone for TestFailure
impl Clone for TestFailure
Source§fn clone(&self) -> TestFailure
fn clone(&self) -> TestFailure
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 TestFailure
impl RefUnwindSafe for TestFailure
impl Send for TestFailure
impl Sync for TestFailure
impl Unpin for TestFailure
impl UnwindSafe for TestFailure
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