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

ben-manes / caffeine / 1376
100%

Build:
DEFAULT BRANCH: master
Ran 07 Oct 2015 03:55AM UTC
Jobs 1
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

pending completion
1376

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

Jobs
ID Job ID Ran Files Coverage
1 1376.1 (TERM=dumb) 07 Oct 2015 03:55AM UTC 0
94.53
Travis Job 1376.1
Source Files on build 1376
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1376
  • 7ba750b5 on github
  • Prev Build on master (#1375)
  • Next Build on master (#1377)
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