@@ -10,14 +10,14 @@ struct RemoveCompositionRootTests {
1010 let fileSystem = MockFileSystem ( fileExistsResults: [ invalidPath: false ] )
1111 let sut = makeRemoveSUT (
1212 projectName: " Project " ,
13- derivedDataPath : invalidPath,
13+ dataStorePath : invalidPath,
1414 excludeCompilationConditionals: false ,
1515 fileSystem: fileSystem,
1616 removerFactory: { _ in MockRemover ( result: [ ] ) }
1717 )
1818
1919 // When
20- let error = await #expect( throws: DerivedDataLocatorError . self) {
20+ let error = await #expect( throws: DataStorePathValidationError . self) {
2121 try await sut. run ( )
2222 }
2323
@@ -32,12 +32,12 @@ struct RemoveCompositionRootTests {
3232 @Test ( " test run prints updated files count when nothing updated " )
3333 func test_run_WhenNoUpdates_PrintsUpdatedCount( ) async throws {
3434 // Given
35- let derivedDataPath = " /mock/DerivedData/IndexStoreDB "
36- let fileSystem = MockFileSystem ( fileExistsResults: [ derivedDataPath : true ] )
35+ let dataStorePath = " /mock/DerivedData/IndexStoreDB "
36+ let fileSystem = MockFileSystem ( fileExistsResults: [ dataStorePath : true ] )
3737 var printMessages : [ String ] = [ ]
3838 let sut = makeRemoveSUT (
3939 projectName: " Project " ,
40- derivedDataPath : derivedDataPath ,
40+ dataStorePath : dataStorePath ,
4141 excludeCompilationConditionals: false ,
4242 fileSystem: fileSystem,
4343 print: { printMessages. append ( $0) } ,
@@ -54,15 +54,15 @@ struct RemoveCompositionRootTests {
5454 @Test ( " test run prints updated files when remover returns results " )
5555 func test_run_WhenUpdatesExist_PrintsUpdatedFiles( ) async throws {
5656 // Given
57- let derivedDataPath = " /mock/DerivedData/IndexStoreDB "
58- let fileSystem = MockFileSystem ( fileExistsResults: [ derivedDataPath : true ] )
57+ let dataStorePath = " /mock/DerivedData/IndexStoreDB "
58+ let fileSystem = MockFileSystem ( fileExistsResults: [ dataStorePath : true ] )
5959 var printMessages : [ String ] = [ ]
6060 var vPrintMessages : [ String ] = [ ]
6161 let updatedFiles = [ " /mock/FileA.swift " , " /mock/FileB.swift " ]
6262 var receivedIndexStorePath : String ?
6363 let sut = makeRemoveSUT (
6464 projectName: " Project " ,
65- derivedDataPath : derivedDataPath ,
65+ dataStorePath : dataStorePath ,
6666 excludeCompilationConditionals: false ,
6767 fileSystem: fileSystem,
6868 print: { printMessages. append ( $0) } ,
@@ -77,7 +77,7 @@ struct RemoveCompositionRootTests {
7777 try await sut. run ( )
7878
7979 // Then
80- #expect( receivedIndexStorePath == " /mock/DerivedData " )
80+ #expect( receivedIndexStorePath == " /mock/DerivedData/IndexStoreDB " )
8181 #expect( printMessages. contains ( " ✅ Updated 2 files " ) )
8282 #expect( vPrintMessages. contains ( " Updated files: " ) )
8383 #expect( vPrintMessages. contains ( " /mock/FileA.swift " ) )
@@ -86,7 +86,7 @@ struct RemoveCompositionRootTests {
8686
8787 private func makeRemoveSUT(
8888 projectName: String ? ,
89- derivedDataPath : String ? ,
89+ dataStorePath : String ? ,
9090 excludeCompilationConditionals: Bool ,
9191 fileSystem: MockFileSystem ,
9292 print: @escaping ( String ) -> Void = { _ in } ,
@@ -95,7 +95,7 @@ struct RemoveCompositionRootTests {
9595 ) -> RemoveCompositionRoot {
9696 RemoveCompositionRoot (
9797 projectName: projectName,
98- derivedDataPath : derivedDataPath ,
98+ dataStorePath : dataStorePath ,
9999 excludeCompilationConditionals: excludeCompilationConditionals,
100100 print: print,
101101 vPrint: vPrint,
0 commit comments