Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for cacheClosedTruncatesIterator (0.75 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt

        iterator.next().use {
          iterator.remove()
        }
        assertFailsWith<IllegalStateException> {
          iterator.remove()
        }
      }
    
      @Test
      fun cacheClosedTruncatesIterator() {
        set("a", "a1", "a2")
        val iterator = cache.snapshots()
        cache.close()
        assertThat(iterator.hasNext()).isFalse()
      }
    
      @Test
      fun isClosed_uninitializedCache() {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Nov 01 12:18:11 GMT 2025
    - 59.4K bytes
    - Click Count (0)
Back to Top