@@ -932,9 +932,9 @@ final class ExplicitModuleBuildTests: XCTestCase {
932
932
main. nativePathString ( escaped: true ) ] + sdkArgumentsForTesting
933
933
934
934
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)
938
938
939
939
XCTAssertTrue ( deps. imports. contains ( " Bar " ) )
940
940
XCTAssertFalse ( deps. imports. contains ( " Car " ) )
@@ -1192,8 +1192,8 @@ final class ExplicitModuleBuildTests: XCTestCase {
1192
1192
scannerCommand. removeFirst ( )
1193
1193
}
1194
1194
let dependencyGraph =
1195
- try ! dependencyOracle. getDependencies ( workingDirectory: path,
1196
- commandLine: scannerCommand)
1195
+ try dependencyOracle. getDependencies ( workingDirectory: path,
1196
+ commandLine: scannerCommand)
1197
1197
1198
1198
let fooDependencyInfo = try XCTUnwrap ( dependencyGraph. modules [ . swiftPrebuiltExternal( " Foo " ) ] )
1199
1199
guard case . swiftPrebuiltExternal( let fooDetails) = fooDependencyInfo. details else {
@@ -1299,8 +1299,8 @@ final class ExplicitModuleBuildTests: XCTestCase {
1299
1299
main. nativePathString ( escaped: true ) ] + sdkArgumentsForTesting
1300
1300
1301
1301
let imports =
1302
- try ! dependencyOracle. getImports ( workingDirectory: path,
1303
- commandLine: scannerCommand)
1302
+ try dependencyOracle. getImports ( workingDirectory: path,
1303
+ commandLine: scannerCommand)
1304
1304
let expectedImports = [ " C " , " E " , " G " , " Swift " , " SwiftOnoneSupport " ]
1305
1305
// Dependnig on how recent the platform we are running on, the _Concurrency module may or may not be present.
1306
1306
let expectedImports2 = [ " C " , " E " , " G " , " Swift " , " SwiftOnoneSupport " , " _Concurrency " ]
@@ -1414,9 +1414,9 @@ final class ExplicitModuleBuildTests: XCTestCase {
1414
1414
scannerCommand. removeFirst ( )
1415
1415
}
1416
1416
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 ( )
1420
1420
XCTAssertEqual ( potentialDiags? . count, 5 )
1421
1421
let diags = try XCTUnwrap ( potentialDiags)
1422
1422
let error = diags [ 0 ]
@@ -1748,7 +1748,7 @@ final class ExplicitModuleBuildTests: XCTestCase {
1748
1748
}
1749
1749
1750
1750
let firstScanGraph =
1751
- try ! firstDependencyOracle. getDependencies ( workingDirectory: path,
1751
+ try firstDependencyOracle. getDependencies ( workingDirectory: path,
1752
1752
commandLine: scannerCommand)
1753
1753
firstDependencyOracle. serializeScannerCache ( to: cacheSavePath)
1754
1754
@@ -1762,8 +1762,8 @@ final class ExplicitModuleBuildTests: XCTestCase {
1762
1762
}
1763
1763
XCTAssertFalse ( secondDependencyOracle. loadScannerCache ( from: cacheSavePath) )
1764
1764
let secondScanGraph =
1765
- try ! secondDependencyOracle. getDependencies ( workingDirectory: path,
1766
- commandLine: scannerCommand)
1765
+ try secondDependencyOracle. getDependencies ( workingDirectory: path,
1766
+ commandLine: scannerCommand)
1767
1767
1768
1768
XCTAssertTrue ( firstScanGraph. modules. count == secondScanGraph. modules. count)
1769
1769
}
0 commit comments