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

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

Build:
Build:
LAST BUILD BRANCH: v3.dev
DEFAULT BRANCH: master
Ran 10 May 2026 06:27PM 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

10 May 2026 06:17PM UTC coverage: 99.903%. Remained the same
#5450

push

github

ben-manes
Record getTime on CacheProxy.get and replace miss/hit short-circuits

CacheProxy.get returned on miss/expired without recording getTime, and
replace(K, V) returned on miss without recording getTime and on hit
without recording getTime alongside putTime. Both methods incremented
hits/misses (which feed getCacheGets), so getAverageGetTime divided by
a denominator that counted the operations while the numerator excluded
them, biasing the average down by the miss ratio. Capture start at
method entry and record getTime on every exit; sample a separate fresh
ticker read for the hasExpired check so the miss-detection ordering is
preserved. replace(K, V) now records getTime on miss and both
getTime+putTime on hit, matching replace(K, V, V) and getAndReplace.

issue found by detail.dev

3995 of 4004 branches covered (99.78%)

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

8207 of 8215 relevant lines covered (99.9%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #5450.1 10 May 2026 06:27PM UTC 78
99.9
Source Files on build #5450
  • Tree
  • List 78
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • e24fdff6 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