cockroach: Index | Files

package leaktest

import ""

Package leaktest provides tools to detect leaked goroutines in tests. To use it, call "defer leaktest.AfterTest(t)()" at the beginning of each test that may use goroutines.


Package Files


func AfterTest Uses

func AfterTest(t testing.TB) func()

AfterTest snapshots the currently-running goroutines and returns a function to be run at the end of tests to see whether any goroutines leaked.

Package leaktest imports 6 packages (graph). Updated 2017-03-13. Refresh now. Tools for package owners. This is a dead-end fork (no commits since the fork).