Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for assertIsFileSnapshot (0.71 sec)

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

            when:
            allowFileSystemAccess(true)
            def snapshot = read(someFile)
            then:
            assertIsFileSnapshot(snapshot, someFile)
    
            when:
            allowFileSystemAccess(false)
            snapshot = read(someFile)
            then:
            assertIsFileSnapshot(snapshot, someFile)
    
            def missingSubfile = someFile.file("subfile/which/is/deep.txt")
            when:
    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/DefaultFileSystemAccessConcurrencyTest.groovy

                })
            }
            executorService.awaitTermination(5, TimeUnit.SECONDS)
            then:
            (1..1000).each { num ->
                def updatedLocation = dir.file(num).file("in-dir.txt")
                assertIsFileSnapshot(read(updatedLocation), updatedLocation)
            }
    
            cleanup:
            executorService.shutdown()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/vfs/impl/AbstractFileSystemAccessTest.groovy

                }
            }
    
            void allowStat(boolean allowed) {
                this.statAllowed = allowed
            }
        }
    
        void assertIsFileSnapshot(FileSystemLocationSnapshot snapshot, File file) {
            assert snapshot.absolutePath == file.absolutePath
            assert snapshot.name == file.name
            assert snapshot.type == FileType.RegularFile
    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