leaktest

package
v2.1.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AfterTest

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.

func AssertNoGoroutineLeak

func AssertNoGoroutineLeak(init map[int64]string)

AssertNoGoroutineLeak checks and ensures that there is no extra goroutine other than the ones included in the init map.

func GetInterestedGoroutines

func GetInterestedGoroutines() map[int64]string

GetInterestedGoroutines returns a set of interested goroutines.

Types

This section is empty.

Jump to

Keyboard shortcuts

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