fortytw2/leaktest
Goroutine Leak Detector observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3781
- days_rel: n/a
- days_push: 2148
- n_releases_24m: 0
Adoption not part of the score
1044 stars · 47 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A small Go testing library that detects goroutine leaks by snapshotting running goroutines at the start and end of a test and comparing them. It is a refactored, tested variant of the leak detector used in Go's net/http tests and CockroachDB.
Use cases
- detect goroutine leaks in Go tests
- fail tests that leave goroutines running
- verify goroutine cleanup after test completion
- add leak checking with custom timeouts
- check leaks using context-based cancellation
When to choose
- you write Go tests for concurrent code and want to catch leaked goroutines
- you want a tiny drop-in test helper with defer-based usage
When to avoid
- your tests use t.Parallel(), which leaktest does not support well
- you need leak detection outside of Go or for non-goroutine resources
Facets
library · maturity maintenance
testing testing developer-tools go cli goroutine-leak-detection test-helper concurrency
1 source
- readme: https://github.com/fortytw2/leaktest · fetched 2026-08-28 · 34b0875bd748
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| fortytw2/leaktest | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="fortytw2/leaktest")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem