• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ben-manes / caffeine / 1376 / 1
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 07 Oct 2015 03:55AM UTC
Files 69
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

07 Oct 2015 03:28AM UTC coverage: 94.526% (+0.1%) from 94.378%
TERM=dumb

push

travis-ci

ben-manes
Perform replace() in compute block

A similar issue to resurrecting an expired value occurs with weights of
zero. An atomic change of the weight should have to be performed in a
compute block so that the proper fix can be applied. The non-compute
version of replace & put come from CLHM, which didn't have that feature
and was pre-JDK8.

This issue remains for put(), but that has proven harder to solve so this
is going in alone. A fixed put() is almost the same as a compute() via
remap(). That reuse doesn't quite work due to small differences, such as
asserting the negative weight should happen prior to calling the writer.
So the fix may either be a modified copy of remap(), more flags on
remap(), or the current logic transformed to a compute call.

After fixing put, adding the resurrection and zero weight handling to
evictMain() are required. A unit test would be good, if possible.

4317 of 4567 relevant lines covered (94.53%)

0.95 hits per line

Source Files on job 1376.1 (TERM=dumb)
  • Tree
  • List 0
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1376
  • Travis Job 1376.1
  • 7ba750b5 on github
  • Prev Job for TERM=dumb on master (#1375.1)
  • Next Job for TERM=dumb on master (#1377.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc