Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencelis committed Jan 23, 2024
1 parent 4069009 commit 88d33f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Sources/XCTestDynamicOverlay/XCTExpectFailure.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -107,7 +109,6 @@ import Foundation
XCTExpectFailureWithOptions(failureReason, options)
}


public struct _XCTIssue: /*CustomStringConvertible, */Equatable, Hashable {
public var type: IssueType
public var compactDescription: String
Expand Down
2 changes: 1 addition & 1 deletion Tests/XCTestDynamicOverlayTests/TestHelpers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ func MyXCTFail(_ message: String) {
XCTFail(message)
}

#if canImport(ObjectiveC)
#if DEBUG && canImport(ObjectiveC)
func MyXCTExpectFailure(
_ failureReason: String,
enabled: Bool = true,
Expand Down

0 comments on commit 88d33f4

Please sign in to comment.