Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for evictionCount (0.06 sec)

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

        assertEquals(1, stats.loadCount());
        long totalLoadTime = stats.totalLoadTime();
        assertTrue(totalLoadTime >= 0);
        assertTrue(stats.averageLoadPenalty() >= 0.0);
        assertEquals(0, stats.evictionCount());
    
        cache.getUnchecked(one);
        stats = cache.stats();
        assertEquals(2, stats.requestCount());
        assertEquals(1, stats.hitCount());
        assertThat(stats.hitRate()).isEqualTo(1.0 / 2);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/AbstractCacheTest.java

        assertEquals(0, stats.loadExceptionCount());
        assertEquals(0, stats.loadCount());
        assertEquals(0, stats.totalLoadTime());
        assertThat(stats.averageLoadPenalty()).isEqualTo(0.0);
        assertEquals(0, stats.evictionCount());
      }
    
      public void testSingleSimpleStats() {
        StatsCounter counter = new SimpleStatsCounter();
        for (int i = 0; i < 11; i++) {
          counter.recordHits(1);
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/cache/CacheStats.java

            saturatedAdd(totalLoadTime, other.totalLoadTime),
            saturatedAdd(evictionCount, other.evictionCount));
      }
    
      @Override
      public int hashCode() {
        return Objects.hash(
            hitCount, missCount, loadSuccessCount, loadExceptionCount, totalLoadTime, evictionCount);
      }
    
      @Override
      public boolean equals(@Nullable Object object) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/cache/CacheExpirationTest.java

        assertEquals("Eviction notifications must be received", 21, removalListener.getCount());
      }
    
      public void testRemovalListener_expireAfterWrite() {
        FakeTicker ticker = new FakeTicker();
        AtomicInteger evictionCount = new AtomicInteger();
        AtomicInteger applyCount = new AtomicInteger();
        AtomicInteger totalSum = new AtomicInteger();
    
        RemovalListener<Integer, AtomicInteger> removalListener =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

          assertEquals("Invalid removal notification", notification.getKey(), notification.getValue());
        }
    
        CacheStats stats = cache.stats();
        assertEquals(removalListener.size(), stats.evictionCount());
        assertEquals(computeCount.get(), stats.loadSuccessCount());
        assertEquals(exceptionCount.get() + computeNullCount.get(), stats.loadExceptionCount());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

          assertEquals("Invalid removal notification", notification.getKey(), notification.getValue());
        }
    
        CacheStats stats = cache.stats();
        assertEquals(removalListener.size(), stats.evictionCount());
        assertEquals(computeCount.get(), stats.loadSuccessCount());
        assertEquals(exceptionCount.get() + computeNullCount.get(), stats.loadExceptionCount());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25K bytes
    - Viewed (0)
Back to top