Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AfterTest ¶
AfterTest gets the current goroutines and runs the returned function to get the goroutines at that time to contrast wheter any goroutines leaked. Usage: defer testleak.AfterTest(c)() It can call with BeforeTest() at the beginning of check.Suite.TearDownSuite() or call alone at the beginning of each test.
func BeforeTest ¶
func BeforeTest()
BeforeTest gets the current goroutines. It's used for check.Suite.SetUpSuite() function. Now it's only used in the tidb_test.go.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.