Searched refs:hitRate (Results 1 – 4 of 4) sorted by relevance
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheStatsTest.java | 32 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()
|
D | AbstractCacheTest.java | 88 assertEquals(1.0, stats.hitRate()); in testEmptySimpleStats() 120 assertEquals(11.0/requestCount, stats.hitRate()); in testSingleSimpleStats()
|
D | LocalLoadingCacheTest.java | 94 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/ |
D | CacheStats.java | 107 public double hitRate() { in hitRate() method in CacheStats
|