Documentation
¶
Overview ¶
Package testleak centralises goroutine-leak detection for tests. It wraps goleak.VerifyTestMain with a shared ignore list for the long-lived goroutines gopherstack legitimately runs (metrics collectors, persistence timers, runtime/test-framework internals) so individual packages can opt in with a one-line TestMain:
func TestMain(m *testing.M) { testleak.VerifyTestMain(m) }
Packages that spawn their own known-persistent goroutines can pass extra goleak.Option values (e.g. goleak.IgnoreTopFunction("...")).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.