Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for evictionCount (0.06 seconds)

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

        FakeTicker ticker = new FakeTicker();
        AtomicInteger evictionCount = new AtomicInteger();
        AtomicInteger applyCount = new AtomicInteger();
        AtomicInteger totalSum = new AtomicInteger();
    
        RemovalListener<Integer, AtomicInteger> removalListener =
            notification -> {
              if (notification.wasEvicted()) {
                evictionCount.incrementAndGet();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 19.1K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertThat(stats.loadCount()).isEqualTo(1);
        long totalLoadTime = stats.totalLoadTime();
        assertThat(totalLoadTime).isAtLeast(0);
        assertThat(stats.averageLoadPenalty()).isAtLeast(0.0);
        assertThat(stats.evictionCount()).isEqualTo(0);
    
        cache.getUnchecked(one);
        stats = cache.stats();
        assertThat(stats.requestCount()).isEqualTo(2);
        assertThat(stats.hitCount()).isEqualTo(1);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 13.1K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertThat(stats.loadCount()).isEqualTo(1);
        long totalLoadTime = stats.totalLoadTime();
        assertThat(totalLoadTime).isAtLeast(0);
        assertThat(stats.averageLoadPenalty()).isAtLeast(0.0);
        assertThat(stats.evictionCount()).isEqualTo(0);
    
        cache.getUnchecked(one);
        stats = cache.stats();
        assertThat(stats.requestCount()).isEqualTo(2);
        assertThat(stats.hitCount()).isEqualTo(1);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 13.1K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

          assertWithMessage("Invalid removal notification")
              .that(notification.getValue())
              .isEqualTo(notification.getKey());
        }
    
        CacheStats stats = cache.stats();
        assertThat(stats.evictionCount()).isEqualTo(removalListener.size());
        assertThat(stats.loadSuccessCount()).isEqualTo(computeCount.get());
        assertThat(stats.loadExceptionCount()).isEqualTo(exceptionCount.get() + computeNullCount.get());
    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

          assertWithMessage("Invalid removal notification")
              .that(notification.getValue())
              .isEqualTo(notification.getKey());
        }
    
        CacheStats stats = cache.stats();
        assertThat(stats.evictionCount()).isEqualTo(removalListener.size());
        assertThat(stats.loadSuccessCount()).isEqualTo(computeCount.get());
        assertThat(stats.loadExceptionCount()).isEqualTo(exceptionCount.get() + computeNullCount.get());
    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