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

dgraph-io / ristretto / 6070857905
74%

Build:
DEFAULT BRANCH: main
Ran 04 Sep 2023 08:14AM 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

01 Sep 2023 06:05AM UTC coverage: 73.768% (+0.06%) from 73.707%
6070857905

push

github

web-flow
stop cleanupTicker while closing cache (#343)

## Problem
`cleanupTicker `that is created in `NewCache` is never stopped, which is
why the code below causes a memory leak

```go
for {
	c, _ := NewCache(...)
	c.Close()
}
```

## Solution
Stop `cleanupTicker` in `Close` method

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

2230 of 3023 relevant lines covered (73.77%)

2501779.88 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
10
60.27
0.55% z/z.go
32
91.48
0.13% cache.go
Jobs
ID Job ID Ran Files Coverage
1 6070857905.1 04 Sep 2023 08:14AM UTC 23
73.77
GitHub Action Run
Source Files on build 6070857905
  • Tree
  • List 23
  • Changed 11
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 91446626 on github
  • Prev Build on main (#6044253271)
  • Next Build on main (#6071469671)
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

© 2025 Coveralls, Inc