Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for snapshotRegularFile (0.25 sec)

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

            when:
            registerWatchableHierarchies([watchableHierarchy])
            then:
            0 * _
    
            when:
            addSnapshot(snapshotRegularFile(fileOutsideOfWatchableHierarchy))
            addSnapshot(snapshotRegularFile(fileInDirectoryIgnoredForWatching))
            then:
            0 * _
            vfsHasSnapshotsAt(fileOutsideOfWatchableHierarchy)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 25 15:08:33 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/cache/internal/DefaultFileContentCacheFactoryTest.groovy

            then:
            result == 10
    
            and:
            interaction {
                snapshotRegularFile(file, TestHashCodes.hashCodeFrom(321))
            }
            1 * calculator.calculate(file, true) >> 10
            0 * _
        }
    
        def snapshotRegularFile(File file, @Nullable HashCode hashCode = TestHashCodes.hashCodeFrom(123)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/registry/impl/NonHierarchicalFileWatcherUpdaterTest.groovy

            when:
            registerWatchableHierarchies(watchableHierarchies)
            then:
            0 * _
    
            when:
            fileInWatchableHierarchies.createFile()
            addSnapshot(snapshotRegularFile(fileInWatchableHierarchies))
            then:
            1 * watcher.startWatching({ equalIgnoringOrder(it, [probeRegistry.getProbeDirectory(file("first"))]) })
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 23 13:24:54 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  4. platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/registry/impl/HierarchicalFileWatcherUpdaterTest.groovy

            when:
            registerWatchableHierarchies([watchableHierarchy])
            addSnapshot(snapshotRegularFile(watchableContent))
            then:
            vfsHasSnapshotsAt(watchableContent)
            1 * watcher.startWatching({ equalIgnoringOrder(it, [watchableHierarchy]) })
            0 * _
    
            when:
            addSnapshot(snapshotRegularFile(unwatchableContent))
            then:
            vfsHasSnapshotsAt(unwatchableContent)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 23 13:24:54 UTC 2024
    - 12K bytes
    - Viewed (0)
Back to top