From 88d33f4c655aca39655abf0e40c8d8d3dfa00455 Mon Sep 17 00:00:00 2001 From: Stephen Celis Date: Tue, 23 Jan 2024 09:56:41 -0800 Subject: [PATCH] wip --- Sources/XCTestDynamicOverlay/XCTExpectFailure.swift | 3 ++- Tests/XCTestDynamicOverlayTests/TestHelpers.swift | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Sources/XCTestDynamicOverlay/XCTExpectFailure.swift b/Sources/XCTestDynamicOverlay/XCTExpectFailure.swift index 916c36e7..ad32816e 100644 --- a/Sources/XCTestDynamicOverlay/XCTExpectFailure.swift +++ b/Sources/XCTestDynamicOverlay/XCTExpectFailure.swift @@ -3,6 +3,7 @@ import Foundation #if DEBUG && canImport(ObjectiveC) /// Instructs the test to expect a failure in an upcoming assertion, with options to customize /// expected failure checking and handling. + /// /// - Parameters: /// - failureReason: An optional string that describes why the test expects a failure. /// - enabled: A Boolean value that indicates whether the test checks for the expected failure. @@ -59,6 +60,7 @@ import Foundation /// Instructs the test to expect a failure in an upcoming assertion, with options to customize /// expected failure checking and handling. + /// /// - Parameters: /// - failureReason: An optional string that describes why the test expects a failure. /// - enabled: A Boolean value that indicates whether the test checks for the expected failure. @@ -107,7 +109,6 @@ import Foundation XCTExpectFailureWithOptions(failureReason, options) } - public struct _XCTIssue: /*CustomStringConvertible, */Equatable, Hashable { public var type: IssueType public var compactDescription: String diff --git a/Tests/XCTestDynamicOverlayTests/TestHelpers.swift b/Tests/XCTestDynamicOverlayTests/TestHelpers.swift index 2d6df0d1..7ca2c0b9 100644 --- a/Tests/XCTestDynamicOverlayTests/TestHelpers.swift +++ b/Tests/XCTestDynamicOverlayTests/TestHelpers.swift @@ -5,7 +5,7 @@ func MyXCTFail(_ message: String) { XCTFail(message) } -#if canImport(ObjectiveC) +#if DEBUG && canImport(ObjectiveC) func MyXCTExpectFailure( _ failureReason: String, enabled: Bool = true,