Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for assertIsMissingFileSnapshot (0.29 sec)

  1. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/vfs/impl/DefaultFileSystemAccessTest.groovy

            when:
            allowFileSystemAccess(true)
            def snapshot = read(someFile)
            then:
            assertIsMissingFileSnapshot(snapshot, someFile)
    
            when:
            allowFileSystemAccess(false)
            snapshot = read(someFile)
            then:
            assertIsMissingFileSnapshot(snapshot, someFile)
    
            def missingSubfile = someFile.file("subfile")
            when:
            snapshot = read(missingSubfile)
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:32 UTC 2023
    - 10K bytes
    - Viewed (0)
  2. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/vfs/impl/AbstractFileSystemAccessTest.groovy

            assert snapshot.name == file.name
            assert snapshot.type == FileType.RegularFile
            assert snapshot.hash == hashFile(file)
        }
    
        void assertIsMissingFileSnapshot(FileSystemLocationSnapshot snapshot, File file) {
            assert snapshot.absolutePath == file.absolutePath
            assert snapshot.name == file.name
            assert snapshot.type == FileType.Missing
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:50:55 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top