#[repr(transparent)]pub struct XCTIssueType(pub NSInteger);Expand description
Types of failures and other issues that can be reported for tests.
See also Apple’s documentation
Tuple Fields§
§0: NSIntegerImplementations§
Source§impl XCTIssueType
impl XCTIssueType
Sourcepub const AssertionFailure: Self
pub const AssertionFailure: Self
Issue raised by a failed XCTAssert or related API.
Sourcepub const ThrownError: Self
pub const ThrownError: Self
Issue raised by the test throwing an error in Swift. This could also occur if an Objective C test is implemented in the form - (BOOL)testFoo:(NSError **)outError and returns NO with a non-nil out error.
Sourcepub const UncaughtException: Self
pub const UncaughtException: Self
Code in the test throws and does not catch an exception, Objective C, C++, or other.
Sourcepub const PerformanceRegression: Self
pub const PerformanceRegression: Self
One of the XCTestCase(measure:) family of APIs detected a performance regression.
Sourcepub const System: Self
pub const System: Self
One of the framework APIs failed internally. For example, XCUIApplication was unable to launch or terminate an app or XCUIElementQuery was unable to complete a query.
Sourcepub const UnmatchedExpectedFailure: Self
pub const UnmatchedExpectedFailure: Self
Issue raised when XCTExpectFailure is used but no matching issue is recorded.
Trait Implementations§
Source§impl Clone for XCTIssueType
impl Clone for XCTIssueType
Source§fn clone(&self) -> XCTIssueType
fn clone(&self) -> XCTIssueType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for XCTIssueType
impl Debug for XCTIssueType
Source§impl Encode for XCTIssueType
impl Encode for XCTIssueType
Source§impl Hash for XCTIssueType
impl Hash for XCTIssueType
Source§impl Ord for XCTIssueType
impl Ord for XCTIssueType
Source§fn cmp(&self, other: &XCTIssueType) -> Ordering
fn cmp(&self, other: &XCTIssueType) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for XCTIssueType
impl PartialEq for XCTIssueType
Source§fn eq(&self, other: &XCTIssueType) -> bool
fn eq(&self, other: &XCTIssueType) -> bool
self and other values to be equal, and is used by ==.