Home
last modified time | relevance | path

Searched refs:hitRate (Results 1 – 4 of 4) sorted by relevance

/external/guava/guava-tests/test/com/google/common/cache/
DCacheStatsTest.java32 assertEquals(1.0, stats.hitRate()); in testEmpty()
48 assertEquals(11.0/24, stats.hitRate()); in testSingle()
67 assertEquals(42.0/76, diff.hitRate()); in testMinus()
88 assertEquals(64.0/124, sum.hitRate()); in testPlus()
DAbstractCacheTest.java88 assertEquals(1.0, stats.hitRate()); in testEmptySimpleStats()
120 assertEquals(11.0/requestCount, stats.hitRate()); in testSingleSimpleStats()
DLocalLoadingCacheTest.java94 assertEquals(0.0, stats.hitRate()); in testStats()
107 assertEquals(1.0/2, stats.hitRate()); in testStats()
118 assertEquals(1.0/3, stats.hitRate()); in testStats()
132 assertEquals(1.0/4, stats.hitRate()); in testStats()
/external/guava/guava/src/com/google/common/cache/
DCacheStats.java107 public double hitRate() { in hitRate() method in CacheStats