Skip to content

Commit 13a8bbf

Browse files
committed
Stop swiftformat from crashing due to empty unit test classes in API
1 parent 56b4dfa commit 13a8bbf

30 files changed

+85
-55
lines changed

AmplifyPlugins/API/APICategoryPlugin.xcodeproj/project.pbxproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@
135135
B4DFA5F1237A611D0013E17B /* AWSAPICategoryPlugin+URLSessionBehaviorDelegateTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B4DFA5D5237A611D0013E17B /* AWSAPICategoryPlugin+URLSessionBehaviorDelegateTests.swift */; };
136136
B4DFA5F2237A611D0013E17B /* RESTOperationRequestValidateTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B4DFA5D7237A611D0013E17B /* RESTOperationRequestValidateTests.swift */; };
137137
B4DFA5F3237A611D0013E17B /* GraphQLOperationRequestValidateTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B4DFA5D8237A611D0013E17B /* GraphQLOperationRequestValidateTests.swift */; };
138-
B4DFA5F4237A611D0013E17B /* UserPoolRequestInterceptor.swift in Sources */ = {isa = PBXBuildFile; fileRef = B4DFA5DA237A611D0013E17B /* UserPoolRequestInterceptor.swift */; };
138+
B4DFA5F4237A611D0013E17B /* UserPoolRequestInterceptorTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B4DFA5DA237A611D0013E17B /* UserPoolRequestInterceptorTests.swift */; };
139139
B4DFA5F5237A611D0013E17B /* APIKeyURLRequestInterceptorTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B4DFA5DB237A611D0013E17B /* APIKeyURLRequestInterceptorTests.swift */; };
140-
B4DFA5F6237A611D0013E17B /* IAMURLRequestInterceptor.swift in Sources */ = {isa = PBXBuildFile; fileRef = B4DFA5DC237A611D0013E17B /* IAMURLRequestInterceptor.swift */; };
140+
B4DFA5F6237A611D0013E17B /* IAMURLRequestInterceptorTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B4DFA5DC237A611D0013E17B /* IAMURLRequestInterceptorTests.swift */; };
141141
B4DFA5F8237A611D0013E17B /* AWSAPICategoryPlugin+ConfigureTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B4DFA5DE237A611D0013E17B /* AWSAPICategoryPlugin+ConfigureTests.swift */; };
142142
B4DFA5F9237A611D0013E17B /* AWSAPICategoryPlugin+URLSessionDelegateTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B4DFA5DF237A611D0013E17B /* AWSAPICategoryPlugin+URLSessionDelegateTests.swift */; };
143143
FA8EE785238632620097E4F1 /* AWSAPIPlugin+Log.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA8EE784238632620097E4F1 /* AWSAPIPlugin+Log.swift */; };
@@ -419,9 +419,9 @@
419419
B4DFA5D5237A611D0013E17B /* AWSAPICategoryPlugin+URLSessionBehaviorDelegateTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "AWSAPICategoryPlugin+URLSessionBehaviorDelegateTests.swift"; sourceTree = "<group>"; };
420420
B4DFA5D7237A611D0013E17B /* RESTOperationRequestValidateTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RESTOperationRequestValidateTests.swift; sourceTree = "<group>"; };
421421
B4DFA5D8237A611D0013E17B /* GraphQLOperationRequestValidateTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GraphQLOperationRequestValidateTests.swift; sourceTree = "<group>"; };
422-
B4DFA5DA237A611D0013E17B /* UserPoolRequestInterceptor.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UserPoolRequestInterceptor.swift; sourceTree = "<group>"; };
422+
B4DFA5DA237A611D0013E17B /* UserPoolRequestInterceptorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UserPoolRequestInterceptorTests.swift; sourceTree = "<group>"; };
423423
B4DFA5DB237A611D0013E17B /* APIKeyURLRequestInterceptorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = APIKeyURLRequestInterceptorTests.swift; sourceTree = "<group>"; };
424-
B4DFA5DC237A611D0013E17B /* IAMURLRequestInterceptor.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = IAMURLRequestInterceptor.swift; sourceTree = "<group>"; };
424+
B4DFA5DC237A611D0013E17B /* IAMURLRequestInterceptorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = IAMURLRequestInterceptorTests.swift; sourceTree = "<group>"; };
425425
B4DFA5DD237A611D0013E17B /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
426426
B4DFA5DE237A611D0013E17B /* AWSAPICategoryPlugin+ConfigureTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "AWSAPICategoryPlugin+ConfigureTests.swift"; sourceTree = "<group>"; };
427427
B4DFA5DF237A611D0013E17B /* AWSAPICategoryPlugin+URLSessionDelegateTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "AWSAPICategoryPlugin+URLSessionDelegateTests.swift"; sourceTree = "<group>"; };
@@ -1034,8 +1034,8 @@
10341034
isa = PBXGroup;
10351035
children = (
10361036
B4DFA5DB237A611D0013E17B /* APIKeyURLRequestInterceptorTests.swift */,
1037-
B4DFA5DC237A611D0013E17B /* IAMURLRequestInterceptor.swift */,
1038-
B4DFA5DA237A611D0013E17B /* UserPoolRequestInterceptor.swift */,
1037+
B4DFA5DC237A611D0013E17B /* IAMURLRequestInterceptorTests.swift */,
1038+
B4DFA5DA237A611D0013E17B /* UserPoolRequestInterceptorTests.swift */,
10391039
);
10401040
path = Interceptor;
10411041
sourceTree = "<group>";
@@ -2100,7 +2100,7 @@
21002100
B4DFA5F5237A611D0013E17B /* APIKeyURLRequestInterceptorTests.swift in Sources */,
21012101
B4DFA5EA237A611D0013E17B /* AWSAPICategoryPlugin+GraphQLBehaviorTests.swift in Sources */,
21022102
B4DFA5E5237A611D0013E17B /* AWSAPICategoryPluginConfigurationEndpointConfigTests.swift in Sources */,
2103-
B4DFA5F4237A611D0013E17B /* UserPoolRequestInterceptor.swift in Sources */,
2103+
B4DFA5F4237A611D0013E17B /* UserPoolRequestInterceptorTests.swift in Sources */,
21042104
B4DFA5E9237A611D0013E17B /* AWSAPICategoryPluginTestBase.swift in Sources */,
21052105
B4DFA5EF237A611D0013E17B /* GraphQLRequestUtilsTests.swift in Sources */,
21062106
B4DFA5E6237A611D0013E17B /* AWSAPICategoryPluginConfigurationTests.swift in Sources */,
@@ -2117,7 +2117,7 @@
21172117
B4DFA5F9237A611D0013E17B /* AWSAPICategoryPlugin+URLSessionDelegateTests.swift in Sources */,
21182118
B4DFA5EC237A611D0013E17B /* GraphQLRequestUtils+ValidatorTests.swift in Sources */,
21192119
B4DFA5EB237A611D0013E17B /* AWSAPICategoryPlugin+ResetTests.swift in Sources */,
2120-
B4DFA5F6237A611D0013E17B /* IAMURLRequestInterceptor.swift in Sources */,
2120+
B4DFA5F6237A611D0013E17B /* IAMURLRequestInterceptorTests.swift in Sources */,
21212121
B4DFA5ED237A611D0013E17B /* GraphQLResponseDecoderTests.swift in Sources */,
21222122
B4DFA5F3237A611D0013E17B /* GraphQLOperationRequestValidateTests.swift in Sources */,
21232123
);

AmplifyPlugins/API/AWSAPICategoryPluginTests/AWSAPICategoryPlugin+ConfigureTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Copyright 2018-2019 Amazon.com,
2+
// Copyright 2018-2020 Amazon.com,
33
// Inc. or its affiliates. All Rights Reserved.
44
//
55
// SPDX-License-Identifier: Apache-2.0

AmplifyPlugins/API/AWSAPICategoryPluginTests/AWSAPICategoryPlugin+GraphQLBehaviorTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Copyright 2018-2019 Amazon.com,
2+
// Copyright 2018-2020 Amazon.com,
33
// Inc. or its affiliates. All Rights Reserved.
44
//
55
// SPDX-License-Identifier: Apache-2.0

AmplifyPlugins/API/AWSAPICategoryPluginTests/AWSAPICategoryPlugin+InterceptorBehaviorTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Copyright 2018-2019 Amazon.com,
2+
// Copyright 2018-2020 Amazon.com,
33
// Inc. or its affiliates. All Rights Reserved.
44
//
55
// SPDX-License-Identifier: Apache-2.0

AmplifyPlugins/API/AWSAPICategoryPluginTests/AWSAPICategoryPlugin+RESTClientBehaviorTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Copyright 2018-2019 Amazon.com,
2+
// Copyright 2018-2020 Amazon.com,
33
// Inc. or its affiliates. All Rights Reserved.
44
//
55
// SPDX-License-Identifier: Apache-2.0

AmplifyPlugins/API/AWSAPICategoryPluginTests/AWSAPICategoryPlugin+ResetTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Copyright 2018-2019 Amazon.com,
2+
// Copyright 2018-2020 Amazon.com,
33
// Inc. or its affiliates. All Rights Reserved.
44
//
55
// SPDX-License-Identifier: Apache-2.0
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Copyright 2018-2019 Amazon.com,
2+
// Copyright 2018-2020 Amazon.com,
33
// Inc. or its affiliates. All Rights Reserved.
44
//
55
// SPDX-License-Identifier: Apache-2.0
@@ -8,4 +8,7 @@
88
import XCTest
99

1010
class AWSAPICategoryPluginURLSessionBehaviorDelegateTests: AWSAPICategoryPluginTestBase {
11+
func testClassMustNotBeEmptyOrSwiftFormatWillCrash() {
12+
//TODO implement code
13+
}
1114
}
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Copyright 2018-2019 Amazon.com,
2+
// Copyright 2018-2020 Amazon.com,
33
// Inc. or its affiliates. All Rights Reserved.
44
//
55
// SPDX-License-Identifier: Apache-2.0
@@ -8,4 +8,7 @@
88
import XCTest
99

1010
class AWSAPICategoryPluginURLSessionDelegateTests: AWSAPICategoryPluginTestBase {
11+
func testClassMustNotBeEmptyOrSwiftFormatWillCrash() {
12+
//TODO implement code
13+
}
1114
}

AmplifyPlugins/API/AWSAPICategoryPluginTests/AWSAPICategoryPluginTestBase.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Copyright 2018-2019 Amazon.com,
2+
// Copyright 2018-2020 Amazon.com,
33
// Inc. or its affiliates. All Rights Reserved.
44
//
55
// SPDX-License-Identifier: Apache-2.0
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Copyright 2018-2019 Amazon.com,
2+
// Copyright 2018-2020 Amazon.com,
33
// Inc. or its affiliates. All Rights Reserved.
44
//
55
// SPDX-License-Identifier: Apache-2.0
@@ -8,4 +8,7 @@
88
import XCTest
99

1010
class AWSAPICategoryPluginConfigurationEndpointConfigTests: XCTestCase {
11+
func testClassMustNotBeEmptyOrSwiftFormatWillCrash() {
12+
//TODO implement code
13+
}
1114
}

0 commit comments

Comments
 (0)