Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for setFaultyRename (0.09 sec)

  1. okhttp/src/test/java/okhttp3/internal/io/FaultyFileSystem.kt

        }
      }
    
      fun setFaultyDelete(
        file: Path,
        faulty: Boolean,
      ) {
        if (faulty) {
          deleteFaults.add(file)
        } else {
          deleteFaults.remove(file)
        }
      }
    
      fun setFaultyRename(
        file: Path,
        faulty: Boolean,
      ) {
        if (faulty) {
          renameFaults.add(file)
        } else {
          renameFaults.remove(file)
        }
      }
    
      @Throws(IOException::class)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

          set("b", "b", "b")
        }
    
        // Cause the rebuild action to fail.
        filesystem.setFaultyRename(cacheDir / DiskLruCache.JOURNAL_FILE_BACKUP, true)
        taskFaker.runNextTask()
        assertThat(cache.remove("a")).isTrue()
        assertAbsent("a")
    
        // Let the rebuild complete successfully.
        filesystem.setFaultyRename(cacheDir / DiskLruCache.JOURNAL_FILE_BACKUP, false)
        taskFaker.runNextTask()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 14:55:09 UTC 2024
    - 75.8K bytes
    - Viewed (0)
Back to top