Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for allowFileSystemAccess (0.22 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)
            fileSystemAccess.write([someFile.absolutePath]) {
                someFile << "Updated"
            }
    
            and:
            allowFileSystemAccess(true)
            snapshot = read(someFile)
    
    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

            def dir = temporaryFolder.createDir("some/deep/hierarchy")
            (1..1000).each {
                def subdir = dir.file(it)
                subdir.file("in-dir.txt").createFile()
            }
    
            allowFileSystemAccess(true)
            read(dir)
            def executorService = Executors.newFixedThreadPool(100)
    
            when:
            (1..1000).each { num ->
                executorService.submit({
    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

            fileHasher,
            new StringInterner(),
            fileSystem::stat,
            TestFiles.virtualFileSystem(),
            updateListener,
            statisticsCollector
        )
    
        void allowFileSystemAccess(boolean allow) {
            fileHasher.allowHashing(allow)
            fileSystem.allowStat(allow)
        }
    
        FileSystemLocationSnapshot read(File file) {
            return fileSystemAccess.read(file.absolutePath)
        }
    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