Discover Packages
github.com/jrote1/cockroach
pkg
util
leaktest
package
Version:
v1.1.2
Opens a new window with list of versions in this module.
Published: Oct 26, 2017
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation Source Files Overview Index Constants Variables Functions Types AfterTest(t)
Documentation
¶
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.
AfterTest snapshots the currently-running goroutines and returns a
function to be run at the end of tests to see whether any
goroutines leaked.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.