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

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

Build:
Build:
LAST BUILD BRANCH: v3.dev
DEFAULT BRANCH: master
Ran 20 Apr 2026 03:47AM 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

20 Apr 2026 03:20AM UTC coverage: 100.0%. Remained the same
#5397

push

github

ben-manes
Cover remaining JaCoCo branches in refresh/remap no-op guards

Three defensive branches in BoundedLocalCache were uncovered because
their preconditions can't arise through the normal refresh protocol:

  1. In the refresh completion lambda, the `removed && (currentValue
     == oldValue)` guard at L1401 never sees `removed==true` with a
     mismatched currentValue — concurrent writes always drop the
     refresh token under the same CHM bin lock. Exercise it via
     `replace(..., shouldDiscardRefresh=false)` with a different new
     value.

  2. In `remap`, the `preserveTimestamps[0]` no-op short-circuit also
     checks `newValue == oldValue` and `cause == null`. Production
     callers couple the flag to returning `currentValue` with a null
     cause, so those fallback branches are unreachable. Cover them via
     the package-level `compute(..., preserveTimestamps)` interface
     with a pre-set flag and (a) a mismatched return value, (b) an
     expired entry where the lambda returns the captured old value.

3915 of 3922 branches covered (99.82%)

8008 of 8008 relevant lines covered (100.0%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #5397.1 20 Apr 2026 03:47AM UTC 78
100.0
Source Files on build #5397
  • Tree
  • List 78
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • c7fcf9a1 on github
  • Prev Build on v3.dev
  • 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