Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getRelativePaths (0.3 sec)

  1. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/impl/DirectorySnapshotterTest.groovy

            then:
            unfilteredSubsnapshots == [snapshot]
            0 * _
    
            when:
            def visited = SnapshotVisitorUtil.getAbsolutePaths(snapshot, true)
            def relativePaths = SnapshotVisitorUtil.getRelativePaths(snapshot, true)
    
            then:
            visited.contains(rootTextFile.absolutePath)
            visited.contains(nestedTextFile.absolutePath)
            visited.contains(nestedSiblingTextFile.absolutePath)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:32 UTC 2023
    - 23.6K bytes
    - Viewed (0)
  2. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/vfs/impl/DefaultFileSystemAccessTest.groovy

            when:
            allowFileSystemAccess(true)
            def snapshot = read(d, new FileNameFilter({ name -> name.endsWith('1')}))
            def relativePaths = SnapshotVisitorUtil.getRelativePaths(snapshot)
            then:
            assertIsDirectorySnapshot(snapshot, d)
            relativePaths == ["d1", "d1/f1", "f1"]
    
            when:
            // filtered snapshots are currently not stored in the VFS
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:32 UTC 2023
    - 10K bytes
    - Viewed (0)
  3. platforms/core-execution/snapshots/src/testFixtures/groovy/org/gradle/internal/snapshot/SnapshotVisitorUtil.groovy

                        absolutePaths << entrySnapshot.absolutePath
                    }
                    CONTINUE
                }
            })
            return absolutePaths
        }
    
        static List<String> getRelativePaths(FileSystemSnapshot snapshot, boolean includeRoots = false) {
            def visitor = new RelativePathVisitor(includeRoots)
            snapshot.accept(new RelativePathTracker(), visitor)
            return visitor.relativePaths
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  4. platforms/core-execution/execution/src/integTest/groovy/org/gradle/internal/execution/IncrementalExecutionIntegrationTest.groovy

            result.afterExecutionOutputState.get().outputFilesProducedByWork.keySet() == ["dir", "emptyDir", "file", "missingDir", "missingFile"] as Set
            SnapshotVisitorUtil.getRelativePaths(result.afterExecutionOutputState.get().outputFilesProducedByWork["dir"]) == ["some-file", "some-file-2"]
            def afterExecution = Iterables.getOnlyElement(executionHistoryStore.executionHistory.values())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 10:36:34 UTC 2024
    - 23.7K bytes
    - Viewed (0)
Back to top