@@ -17,15 +17,15 @@ class AsyncThrowingMockReferenceTests: XCTestCase {
1717 private lazy var mock = TestClass ( )
1818
1919 func testCanRegisterThrowingErrorsAsResult( ) async {
20- mock. registerResult ( for: \. functionWithIntResultRef) { _ , _ in throw MockError . someError }
21- mock. registerResult ( for: \. functionWithStringResultRef) { _ , _ in throw MockError . someError }
22- mock. registerResult ( for: \. functionWithStructResultRef) { _ , _ in throw MockError . someError }
23- mock. registerResult ( for: \. functionWithClassResultRef) { _ , _ in throw MockError . someError }
24- mock. registerResult ( for: \. functionWithOptionalIntResultRef) { _ , _ in throw MockError . someError }
25- mock. registerResult ( for: \. functionWithOptionalStringResultRef) { _ , _ in throw MockError . someError }
26- mock. registerResult ( for: \. functionWithOptionalStructResultRef) { _ , _ in throw MockError . someError }
27- mock. registerResult ( for: \. functionWithOptionalClassResultRef) { _ , _ in throw MockError . someError }
28- mock. registerResult ( for: \. functionWithVoidResultRef) { _ , _ in throw MockError . someError }
20+ mock. registerResult ( for: \. functionWithIntResultRef) { _ , _ in throw MockError . someError }
21+ mock. registerResult ( for: \. functionWithStringResultRef) { _ , _ in throw MockError . someError }
22+ mock. registerResult ( for: \. functionWithStructResultRef) { _ , _ in throw MockError . someError }
23+ mock. registerResult ( for: \. functionWithClassResultRef) { _ , _ in throw MockError . someError }
24+ mock. registerResult ( for: \. functionWithOptionalIntResultRef) { _ , _ in throw MockError . someError }
25+ mock. registerResult ( for: \. functionWithOptionalStringResultRef) { _ , _ in throw MockError . someError }
26+ mock. registerResult ( for: \. functionWithOptionalStructResultRef) { _ , _ in throw MockError . someError }
27+ mock. registerResult ( for: \. functionWithOptionalClassResultRef) { _ , _ in throw MockError . someError }
28+ mock. registerResult ( for: \. functionWithVoidResultRef) { _ , _ in throw MockError . someError }
2929
3030 await assertThrowsAsyncError { try await mock. functionWithIntResult ( arg1: " abc " , arg2: 123 ) }
3131 await assertThrowsAsyncError { try await mock. functionWithStringResult ( arg1: " abc " , arg2: 123 ) }
@@ -247,7 +247,7 @@ class AsyncThrowingMockReferenceTests: XCTestCase {
247247 }
248248
249249 func testInspectingCallsCanVerifyIfAnExactNumberOrCallsHaveBeenMade( ) async throws {
250- mock. registerResult ( for: \. functionWithVoidResultRef) { _ , _ in }
250+ mock. registerResult ( for: \. functionWithVoidResultRef) { _ , _ in }
251251
252252 XCTAssertFalse ( mock. hasCalled ( mock. functionWithVoidResultRef, numberOfTimes: 2 ) )
253253 try await mock. functionWithVoidResult ( arg1: " abc " , arg2: 123 )
0 commit comments