Ran
|
Files
64
|
Run time
2s
|
Badge
Embed ▾
README BADGES
|
push
travis-ci
Do not admit entries that exceed the maximum weight If an entry's weight exceeds the cache's maximum capacity, then evict it immediately. This avoids flushing the probation segment, though it probably does flush the admission window (1% of the total size). Thanks to @blemale for reminding me when I peeked at his WeigherSpec test [1]. This was fixed in Guava [2], but I had forgotten to port that over after v19 was released. Also improved the correction of evaluating the admission candidates when evicting multiple entries. When a candidate is accepted or evicted the count is decremented and the next is set for evaluation. This most often occurs for weighted caches. [1] https://github.com/blemale/scaffeine [2] https://github.com/google/guava/commit/b3855ef79
4451 of 4677 relevant lines covered (95.17%)
0.95 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|