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

ben-manes / caffeine / 2349 / 2
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 20 Feb 2019 10:24AM UTC
Files 68
Run time 6s
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

20 Feb 2019 07:28AM UTC coverage: 93.787% (-0.003%) from 93.79%
GROUP=tests

push

travis-ci

ben-manes
Async map support (fixes #156)

AsyncCache now includes an `asMap()` view where the value is the
`CompletableFuture`. This allows for directly working with the
futures with all of the flexibility that Map provides, just as is
possible with the synchronous cache. The synchronous view has the
limitation of requiring that the existing future completes and the
new value cannot be in-flight.

Because the future (put, replace, computes) may be in-flight, the
completion of the future is counted as the load success / failure. The
map operation to insert that future is not counted in the statistics, as
typically the future is immediately obtainable, fetching it shouldn't
fail, and the success / fail / cost is not a meaningful attribute. This
means some operations record load stats differently than the synchronous
view. The topic of stats is fuzzy enough that this seems okay, as long
as it provides some meaningful metrics that fit the mental model of the
cache type being used. A related difference is that futures do not have
a notion of equality (reference-based) which can cause subtle differences
in behavior.

5948 of 6342 relevant lines covered (93.79%)

0.94 hits per line

Source Files on job 2349.2 (GROUP=tests)
  • Tree
  • List 0
  • Changed 8
  • Source Changed 7
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2316
  • Travis Job 2349.2
  • 3ade58b9 on github
  • Prev Job for GROUP=tests on master (#2348.2)
  • Next Job for GROUP=tests on master (#2350.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc