pub struct TestFailure {
pub message: String,
pub file: Option<String>,
pub line: Option<u64>,
}Expand description
Failure details for a single test case.
Fields§
§message: StringFailure message emitted by XCTest.
file: Option<String>Source file path when available.
line: Option<u64>Source line when available.
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 (const: unstable) · 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 TestFailure
impl Debug for TestFailure
Source§impl PartialEq for TestFailure
impl PartialEq for TestFailure
Source§fn eq(&self, other: &TestFailure) -> bool
fn eq(&self, other: &TestFailure) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TestFailure
impl Serialize for TestFailure
impl StructuralPartialEq for TestFailure
Auto Trait Implementations§
impl Freeze for TestFailure
impl RefUnwindSafe for TestFailure
impl Send for TestFailure
impl Sync for TestFailure
impl Unpin for TestFailure
impl UnsafeUnpin 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