2020@testable import XCRemoteCache
2121import XCTest
2222
23+ // swiftlint:disable type_body_length
2324class SwiftFrontendArgInputTests : FileXCTestCase {
2425 private var compile : Bool = true
2526 private var emitModule : Bool = false
@@ -114,62 +115,62 @@ class SwiftFrontendArgInputTests: FileXCTestCase {
114115 }
115116
116117 func testFailsIfDependenciesAreMissing( ) throws {
117- inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
118+ inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
118119 target = " Target "
119120 moduleName = " Module "
120- primaryInputPaths = [ " /file1 " , " /file2 " ]
121+ primaryInputPaths = [ " /file1 " , " /file2 " ]
121122 dependenciesPaths = [ " /file1.d " ]
122123 buildInput ( )
123124
124125 assertGenerationError ( SwiftFrontendArgInputError . dependenciesOuputCountDoesntMatch ( expected: 2 , parsed: 1 ) )
125126 }
126127
127128 func testDoesntFailForMissingDependenciesIfNoDependencies( ) throws {
128- inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
129+ inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
129130 target = " Target "
130131 moduleName = " Module "
131- primaryInputPaths = [ " /file1 " , " /file2 " ]
132+ primaryInputPaths = [ " /file1 " , " /file2 " ]
132133 dependenciesPaths = [ ]
133134 buildInput ( )
134135
135136 assertGenerationError ( SwiftFrontendArgInputError . outputsOuputCountDoesntMatch ( expected: 2 , parsed: 0 ) )
136137 }
137138
138139 func testFailsIfDiagnosticsAreMissing( ) throws {
139- inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
140+ inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
140141 target = " Target "
141142 moduleName = " Module "
142- primaryInputPaths = [ " /file1 " , " /file2 " ]
143+ primaryInputPaths = [ " /file1 " , " /file2 " ]
143144 diagnosticsPaths = [ " /file1.d " ]
144145 buildInput ( )
145146
146147 assertGenerationError ( SwiftFrontendArgInputError . diagnosticsOuputCountDoesntMatch ( expected: 2 , parsed: 1 ) )
147148 }
148149
149150 func testDoesntFailForMissingDdiagnosticsIfNoDiagnostics( ) throws {
150- inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
151+ inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
151152 target = " Target "
152153 moduleName = " Module "
153- primaryInputPaths = [ " /file1 " , " /file2 " ]
154+ primaryInputPaths = [ " /file1 " , " /file2 " ]
154155 diagnosticsPaths = [ ]
155156 buildInput ( )
156157
157158 assertGenerationError ( SwiftFrontendArgInputError . outputsOuputCountDoesntMatch ( expected: 2 , parsed: 0 ) )
158159 }
159160
160161 func testFailsIfOutputsAreMissing( ) throws {
161- inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
162+ inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
162163 target = " Target "
163164 moduleName = " Module "
164- primaryInputPaths = [ " /file1 " , " /file2 " ]
165+ primaryInputPaths = [ " /file1 " , " /file2 " ]
165166 outputPaths = [ " /file1.o " ]
166167 buildInput ( )
167168
168169 assertGenerationError ( SwiftFrontendArgInputError . outputsOuputCountDoesntMatch ( expected: 2 , parsed: 1 ) )
169170 }
170171
171172 func testSetsCompilationSubsetForCompilation( ) throws {
172- inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
173+ inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
173174 target = " Target "
174175 moduleName = " Module "
175176 primaryInputPaths = [ " /file1 " ]
@@ -185,7 +186,7 @@ class SwiftFrontendArgInputTests: FileXCTestCase {
185186 }
186187
187188 func testBuildCompilationFilesInputs( ) throws {
188- inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
189+ inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
189190 target = " Target "
190191 moduleName = " Module "
191192 primaryInputPaths = [ " /file1 " ]
@@ -200,14 +201,13 @@ class SwiftFrontendArgInputTests: FileXCTestCase {
200201 file: " /file1 " ,
201202 dependencies: " /file1.d " ,
202203 object: " /file1.o " ,
203- swiftDependencies: nil
204- )
204+ swiftDependencies: nil ) ,
205205 ] )
206206 )
207207 }
208208
209209 func testRecognizesArchFromOuputFirstPaths( ) throws {
210- inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
210+ inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
211211 target = " Target "
212212 moduleName = " Module "
213213 primaryInputPaths = [ " /file1 " ]
@@ -221,7 +221,7 @@ class SwiftFrontendArgInputTests: FileXCTestCase {
221221 }
222222
223223 func testPassesExtraParams( ) throws {
224- inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
224+ inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
225225 target = " Target "
226226 moduleName = " Module "
227227 primaryInputPaths = [ " /file1 " ]
@@ -240,7 +240,7 @@ class SwiftFrontendArgInputTests: FileXCTestCase {
240240 func testEmitModuleFailsForMissingOutput( ) throws {
241241 emitModule = true
242242 compile = false
243- inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
243+ inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
244244 target = " Target "
245245 moduleName = " Module "
246246 outputPaths = [ ]
@@ -252,7 +252,7 @@ class SwiftFrontendArgInputTests: FileXCTestCase {
252252 func testEmitModuleFailsForMissingObjcHeader( ) throws {
253253 emitModule = true
254254 compile = false
255- inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
255+ inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
256256 target = " Target "
257257 moduleName = " Module "
258258 outputPaths = [ " /Module.swiftmodule " ]
@@ -264,7 +264,7 @@ class SwiftFrontendArgInputTests: FileXCTestCase {
264264 func testEmitModuleFailsForExcessiveDiagnostics( ) throws {
265265 emitModule = true
266266 compile = false
267- inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
267+ inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
268268 target = " Target "
269269 moduleName = " Module "
270270 outputPaths = [ " /Module.swiftmodule " ]
@@ -278,7 +278,7 @@ class SwiftFrontendArgInputTests: FileXCTestCase {
278278 func testEmitModuleFailsForExcessiveDependencies( ) throws {
279279 emitModule = true
280280 compile = false
281- inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
281+ inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
282282 target = " Target "
283283 moduleName = " Module "
284284 outputPaths = [ " /Module.swiftmodule " ]
@@ -292,7 +292,7 @@ class SwiftFrontendArgInputTests: FileXCTestCase {
292292 func testEmitModuleSetsStep( ) throws {
293293 emitModule = true
294294 compile = false
295- inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
295+ inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
296296 target = " Target "
297297 moduleName = " Module "
298298 outputPaths = [ " /Module.swiftmodule " ]
@@ -315,7 +315,7 @@ class SwiftFrontendArgInputTests: FileXCTestCase {
315315 func testEmitModuleSetsAllIntpus( ) throws {
316316 emitModule = true
317317 compile = false
318- inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
318+ inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
319319 target = " Target "
320320 moduleName = " Module "
321321 outputPaths = [ " /Module.swiftmodule " ]
@@ -330,7 +330,7 @@ class SwiftFrontendArgInputTests: FileXCTestCase {
330330 func testEmitModuleRecognizesArchFromObjCHeader( ) throws {
331331 emitModule = true
332332 compile = false
333- inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
333+ inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
334334 target = " Target "
335335 moduleName = " Module "
336336 outputPaths = [ " file.swiftmodule " ]
@@ -345,7 +345,7 @@ class SwiftFrontendArgInputTests: FileXCTestCase {
345345 func testEmitModulePassesExtraParams( ) throws {
346346 emitModule = true
347347 compile = false
348- inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
348+ inputPaths = [ " /file1 " , " /file2 " , " /file3 " ]
349349 target = " Target "
350350 moduleName = " Module "
351351 outputPaths = [ " /Module.swiftmodule " ]
@@ -360,3 +360,4 @@ class SwiftFrontendArgInputTests: FileXCTestCase {
360360 XCTAssertEqual ( context. mode, . consumer( commit: . unavailable) )
361361 }
362362}
363+ // swiftlint:enable type_body_length
0 commit comments