Skip to content

Commit 9f1493a

Browse files
committed
Fix linting
1 parent a1b15e4 commit 9f1493a

2 files changed

Lines changed: 20 additions & 20 deletions

File tree

Tests/MockingKitTests/AsyncThrowingMockReferenceTests.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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)

Tests/MockingKitTests/ThrowingMockReferenceTests.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ class ThrowingMockReferenceTests: XCTestCase {
1717
private lazy var mock = TestClass()
1818

1919
func testCanRegisterThrowingErrorsAsResult() {
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
XCTAssertThrowsError(try mock.functionWithIntResult(arg1: "abc", arg2: 123))
3131
XCTAssertThrowsError(try mock.functionWithStringResult(arg1: "abc", arg2: 123))
@@ -247,7 +247,7 @@ class ThrowingMockReferenceTests: XCTestCase {
247247
}
248248

249249
func testInspectingCallsCanVerifyIfAnExactNumberOrCallsHaveBeenMade() throws {
250-
mock.registerResult(for: \.functionWithVoidResultRef) { _,_ in }
250+
mock.registerResult(for: \.functionWithVoidResultRef) { _, _ in }
251251

252252
XCTAssertFalse(mock.hasCalled(mock.functionWithVoidResultRef, numberOfTimes: 2))
253253
try mock.functionWithVoidResult(arg1: "abc", arg2: 123)

0 commit comments

Comments
 (0)