Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for snapshotDirectory (0.29 sec)

  1. platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/registry/impl/HierarchicalFileWatcherUpdaterTest.groovy

            registerWatchableHierarchies([watchableHierarchy])
            def subDirInRootDir = watchableHierarchy.file("some/path").createDir()
            def snapshotInRootDir = snapshotDirectory(subDirInRootDir)
    
            when:
            addSnapshot(snapshotInRootDir)
            then:
            1 * watcher.startWatching({ equalIgnoringOrder(it, [watchableHierarchy]) })
            0 * _
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 23 13:24:54 UTC 2024
    - 12K bytes
    - Viewed (0)
  2. platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/registry/impl/NonHierarchicalFileWatcherUpdaterTest.groovy

        def "watchers are stopped when removing the last watched snapshot"() {
            def rootDir = file("root").createDir()
            ["first", "second", "third"].collect { rootDir.createFile(it) }
            def rootDirSnapshot = snapshotDirectory(rootDir)
    
            when:
            registerWatchableHierarchies([rootDir])
            addSnapshot(rootDirSnapshot)
            then:
            1 * watcher.startWatching({ equalIgnoringOrder(it, [rootDir]) })
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 23 13:24:54 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/registry/impl/AbstractFileWatcherUpdaterTest.groovy

            0 * _
        }
    
        TestFile file(Object... path) {
            temporaryFolder.testDirectory.file(path)
        }
    
        DirectorySnapshot snapshotDirectory(File directory) {
            directorySnapshotter.snapshot(directory.absolutePath, null, [:]) {} as DirectorySnapshot
        }
    
        void addSnapshot(FileSystemLocationSnapshot snapshot) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 25 15:08:33 UTC 2024
    - 21.5K bytes
    - Viewed (0)
Back to top