Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for checkEmpty (0.08 seconds)

  1. guava-tests/test/com/google/common/cache/EmptyCachesTest.java

        for (LoadingCache<Object, Object> cache : caches()) {
          checkEmpty(cache);
        }
      }
    
    
      public void testInvalidate_empty() {
        for (LoadingCache<Object, Object> cache : caches()) {
          cache.getUnchecked("a");
          cache.getUnchecked("b");
          cache.invalidate("a");
          cache.invalidate("b");
          cache.invalidate(0);
          checkEmpty(cache);
        }
      }
    
      public void testInvalidateAll_empty() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

            assertThat(keys.remove(key)).isTrue();
            assertThat(keys.remove(key)).isFalse();
            assertThat(keys.contains(key)).isFalse();
          }
          checkEmpty(keys);
          checkEmpty(cache);
        }
      }
    
      public void testValues_populated() {
        for (LoadingCache<Object, Object> cache : caches()) {
          Collection<Object> values = cache.asMap().values();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 15.4K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/cache/LocalCacheMapComputeTest.java

        cache.asMap().computeIfPresent(1, (key, value) -> null);
        assertThat(notifications).hasSize(1);
        CacheTesting.checkEmpty(cache);
    
        // ensure no zombie entry remains
        cache.asMap().computeIfPresent(1, (key, value) -> null);
        assertThat(notifications).hasSize(1);
        CacheTesting.checkEmpty(cache);
      }
    
      public void testComputeIfPresent_error() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 6.4K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        Object key = new Object();
        assertThat(nullCache.getUnchecked(key)).isSameInstanceAs(key);
        assertThat(listener.getCount()).isEqualTo(1);
        assertThat(nullCache.size()).isEqualTo(0);
        CacheTesting.checkEmpty(nullCache.asMap());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // QueuingRemovalListener
      public void testRemovalNotification_clear() throws InterruptedException {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 25.7K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        Object key = new Object();
        assertThat(nullCache.getUnchecked(key)).isSameInstanceAs(key);
        assertThat(listener.getCount()).isEqualTo(1);
        assertThat(nullCache.size()).isEqualTo(0);
        CacheTesting.checkEmpty(nullCache.asMap());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // QueuingRemovalListener
      public void testRemovalNotification_clear() throws InterruptedException {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 25.6K bytes
    - Click Count (0)
Back to Top