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 b28af93 commit 6cf2de8
Showing 1 changed file with 29 additions and 27 deletions.
56 changes: 29 additions & 27 deletions Tests/XCTestDynamicOverlayTests/TestHelpers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,37 @@ func MyXCTFail(_ message: String) {
XCTFail(message)
}

func MyXCTExpectFailure(
_ failureReason: String,
enabled: Bool = true,
strict: Bool = true,
failingBlock: () -> Void,
issueMatcher: ((_XCTIssue) -> Bool)? = nil
) {
XCTExpectFailure(
failureReason,
enabled: enabled,
strict: strict,
failingBlock: failingBlock,
issueMatcher: issueMatcher
)
}
#if canImport(ObjectiveC)
func MyXCTExpectFailure(
_ failureReason: String,
enabled: Bool = true,
strict: Bool = true,
failingBlock: () -> Void,
issueMatcher: ((_XCTIssue) -> Bool)? = nil
) {
XCTExpectFailure(
failureReason,
enabled: enabled,
strict: strict,
failingBlock: failingBlock,
issueMatcher: issueMatcher
)
}

func MyXCTExpectFailure(
_ failureReason: String,
enabled: Bool = true,
strict: Bool = true,
issueMatcher: ((_XCTIssue) -> Bool)? = nil
) {
XCTExpectFailure(
failureReason,
enabled: enabled,
strict: strict,
issueMatcher: issueMatcher
)
func MyXCTExpectFailure(
_ failureReason: String,
enabled: Bool = true,
strict: Bool = true,
issueMatcher: ((_XCTIssue) -> Bool)? = nil
) {
XCTExpectFailure(
failureReason,
enabled: enabled,
strict: strict,
issueMatcher: issueMatcher
)
}
#endif

struct Client {
var p00: () -> Int
Expand Down

0 comments on commit 6cf2de8

Please sign in to comment.