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

dgraph-io / ristretto / 6035583672
74%

Build:
DEFAULT BRANCH: main
Ran 31 Aug 2023 09:41AM UTC
Jobs 1
Files 23
Run time 1s
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

31 Aug 2023 06:52AM UTC coverage: 73.707% (+0.02%) from 73.689%
6035583672

push

web-flow
set missing Expiration field on evicted items (#345)

On our use case we need to rely on expiration timestamps but we realized
that they return zero timestamps. Our assumption is that this is due to
a bug and not by design.

## Problem
When `OnEvict` callback is executed `Item` does not have `Expiration`
field set. Considering it is a public field this needs to be set and
available.

## Solution
Initialize `Expiration` field before calling the `onEvict` callback

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

2223 of 3016 relevant lines covered (73.71%)

2506912.75 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6035583672.1 31 Aug 2023 09:41AM UTC 23
73.71
Source Files on build 6035583672
  • Tree
  • List 23
  • Changed 10
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • f0e70276 on github
  • Prev Build on main (#6033876031)
  • Next Build on main (#6035890517)
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