testleak

package
v0.0.0-...-815d2fd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AfterTest

func AfterTest(c *check.C) func()

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL