goroutine_leak_check

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckLeakedGoRoutines

func CheckLeakedGoRoutines(funcWhitelist ...string) error

CheckLeakedGoRoutines is used to check for goroutine leaks at the end of a test. It is not uncommon to leave a go routine that will never finish, e.g. blocked on a channel that is unreachable will never be closed. This function enumerates goroutines and reports any goroutines that are left running.

func LeakCheckingTestMain

func LeakCheckingTestMain(m *testing.M, funcWhitelist ...string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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