@@ -932,9 +932,9 @@ final class ExplicitModuleBuildTests: XCTestCase {
932932 main. nativePathString ( escaped: true ) ] + sdkArgumentsForTesting
933933
934934 let deps =
935- try ! dependencyOracle. getImports ( workingDirectory: path,
936- moduleAliases: [ " Car " : " Bar " ] ,
937- commandLine: scannerCommand)
935+ try dependencyOracle. getImports ( workingDirectory: path,
936+ moduleAliases: [ " Car " : " Bar " ] ,
937+ commandLine: scannerCommand)
938938
939939 XCTAssertTrue ( deps. imports. contains ( " Bar " ) )
940940 XCTAssertFalse ( deps. imports. contains ( " Car " ) )
@@ -1192,8 +1192,8 @@ final class ExplicitModuleBuildTests: XCTestCase {
11921192 scannerCommand. removeFirst ( )
11931193 }
11941194 let dependencyGraph =
1195- try ! dependencyOracle. getDependencies ( workingDirectory: path,
1196- commandLine: scannerCommand)
1195+ try dependencyOracle. getDependencies ( workingDirectory: path,
1196+ commandLine: scannerCommand)
11971197
11981198 let fooDependencyInfo = try XCTUnwrap ( dependencyGraph. modules [ . swiftPrebuiltExternal( " Foo " ) ] )
11991199 guard case . swiftPrebuiltExternal( let fooDetails) = fooDependencyInfo. details else {
@@ -1299,8 +1299,8 @@ final class ExplicitModuleBuildTests: XCTestCase {
12991299 main. nativePathString ( escaped: true ) ] + sdkArgumentsForTesting
13001300
13011301 let imports =
1302- try ! dependencyOracle. getImports ( workingDirectory: path,
1303- commandLine: scannerCommand)
1302+ try dependencyOracle. getImports ( workingDirectory: path,
1303+ commandLine: scannerCommand)
13041304 let expectedImports = [ " C " , " E " , " G " , " Swift " , " SwiftOnoneSupport " ]
13051305 // Dependnig on how recent the platform we are running on, the _Concurrency module may or may not be present.
13061306 let expectedImports2 = [ " C " , " E " , " G " , " Swift " , " SwiftOnoneSupport " , " _Concurrency " ]
@@ -1414,9 +1414,9 @@ final class ExplicitModuleBuildTests: XCTestCase {
14141414 scannerCommand. removeFirst ( )
14151415 }
14161416 let _ =
1417- try ! dependencyOracle. getDependencies ( workingDirectory: path,
1418- commandLine: scannerCommand)
1419- let potentialDiags = try ! dependencyOracle. getScannerDiagnostics ( )
1417+ try dependencyOracle. getDependencies ( workingDirectory: path,
1418+ commandLine: scannerCommand)
1419+ let potentialDiags = try dependencyOracle. getScannerDiagnostics ( )
14201420 XCTAssertEqual ( potentialDiags? . count, 5 )
14211421 let diags = try XCTUnwrap ( potentialDiags)
14221422 let error = diags [ 0 ]
@@ -1748,7 +1748,7 @@ final class ExplicitModuleBuildTests: XCTestCase {
17481748 }
17491749
17501750 let firstScanGraph =
1751- try ! firstDependencyOracle. getDependencies ( workingDirectory: path,
1751+ try firstDependencyOracle. getDependencies ( workingDirectory: path,
17521752 commandLine: scannerCommand)
17531753 firstDependencyOracle. serializeScannerCache ( to: cacheSavePath)
17541754
@@ -1762,8 +1762,8 @@ final class ExplicitModuleBuildTests: XCTestCase {
17621762 }
17631763 XCTAssertFalse ( secondDependencyOracle. loadScannerCache ( from: cacheSavePath) )
17641764 let secondScanGraph =
1765- try ! secondDependencyOracle. getDependencies ( workingDirectory: path,
1766- commandLine: scannerCommand)
1765+ try secondDependencyOracle. getDependencies ( workingDirectory: path,
1766+ commandLine: scannerCommand)
17671767
17681768 XCTAssertTrue ( firstScanGraph. modules. count == secondScanGraph. modules. count)
17691769 }
0 commit comments