Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/fortytw2/leaktest
/ functions
Functions
17 in github.com/fortytw2/leaktest
⨍
Functions
17
◇
Types & classes
4
↓ 12 callers
Method
Errorf
(format string, args ...interface{})
leaktest.go:97
↓ 4 callers
Function
CheckTimeout
CheckTimeout is the same as Check, but with a configurable timeout
leaktest.go:108
↓ 3 callers
Function
interestingGoroutine
(g string)
leaktest.go:33
↓ 2 callers
Function
CheckContext
CheckContext is the same as Check, but uses a context.Context for cancellation and timeout control
leaktest.go:122
↓ 2 callers
Function
interestingGoroutines
interestingGoroutines returns all goroutines we care about for the purpose of leak checking. It excludes testing or runtime ones.
leaktest.go:76
↓ 1 callers
Function
index
()
leaktest_utils_test.go:10
↓ 1 callers
Function
startKeepAliveEnabledServer
(ctx context.Context)
leaktest_utils_test.go:16
Function
Check
Check snapshots the currently-running goroutines and returns a function to be run at the end of tests to see whether any goroutines leaked, waiting up
leaktest.go:103
Method
Errorf
(format string, args ...interface{})
leaktest_test.go:19
Method
Len
()
leaktest.go:29
Method
Less
(i, j int)
leaktest.go:30
Method
Swap
(i, j int)
leaktest.go:31
Function
TestChangingStackTrace
TestChangingStackTrace validates that a change in a preexisting goroutine's stack is not detected as a leaked goroutine.
leaktest_test.go:156
Function
TestCheck
(t *testing.T)
leaktest_test.go:27
Function
TestEmptyLeak
(t *testing.T)
leaktest_test.go:147
Function
TestInterestingGoroutine
(t *testing.T)
leaktest_test.go:173
Function
TestSlowTest
TestSlowTest verifies that the timeout works on slow tests: it should be based on time after the test finishes rather than time after the test's start
leaktest_test.go:140