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

ben-manes / caffeine / #5557
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: v3.dev
DEFAULT BRANCH: master
Ran 29 Jun 2026 02:29AM UTC
Jobs 1
Files 78
Run time 1min
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

29 Jun 2026 01:54AM UTC coverage: 99.976% (-0.02%) from 100.0%
#5557

push

github

ben-manes
Align async asMap().computeIfAbsent stats with get

AsyncAsMapView.computeIfAbsent hand-rolled its hit/miss stats and
diverged from AsyncCache.get and the sync asMap().computeIfAbsent:
it deferred a conditional hit and recorded nothing on a throwing or
null-returning mapping function. Mirror get's mechanism
(recordStats=true + handleCompletion(recordMiss=false)) so hit/miss
flow through the same statsAware/afterRead path.

It can't delegate to get directly: get's requireNonNull on the
mapping result and the returned future would break the
Map.computeIfAbsent null-return contract, so this inlines get's body
without those checks.

Stats now match get: present->hit, absent+value->miss+success,
absent+throw->miss+failure, absent+null->miss. The
computeIfAbsent_error/_nullValue/_present_failed assertions pinned
the prior incidental behavior and are corrected to the sync sibling.

4045 of 4054 branches covered (99.78%)

2 of 2 new or added lines in 1 file covered. (100.0%)

2 existing lines in 2 files now uncovered.

8243 of 8245 relevant lines covered (99.98%)

1.0 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
99.96
-0.04% caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java
1
99.88
-0.12% caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncCache.java
Jobs
ID Job ID Ran Files Coverage
1 #5557.1 29 Jun 2026 02:29AM UTC 78
99.98
Source Files on build #5557
  • Tree
  • List 78
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 78d1d40b on github
  • Prev Build on master
  • Next Build on v3.dev
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