Registry / testing / fortytw2-leaktest

fortytw2-leaktest

JSON →
library1.3.0gogounverified

Provides tools to detect leaked goroutines in tests.

go get github.com/fortytw2/leaktest
INSTALL
IMPORT
SIG · FORTYTW2-LEAKTEST
F
fortytw2-leaktest
testinggov1.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

leaktest
github.com/fortytw2/leaktest

Checks for goroutine leaks at the end of a test.

package main import ( "testing" "github.com/fortytw2/leaktest" ) func TestSomething(t *testing.T) { defer leaktest.Check(t)() // test code }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.3.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
fortytw2-leaktest — go get fortytw2-leaktest · libregistry