Discover Packages
github.com/gaozhengshuang/familyfight
server
gopath
src
google.golang.org
grpc
test
leakcheck
package
Version:
v0.0.0-...-52d6a69
Opens a new window with list of versions in this module.
Published: Jun 19, 2019
License: Apache-2.0, Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package leakcheck contains functions to check leaked goroutines.
Call "defer leakcheck.Check(t)" at the beginning of tests.
Check looks at the currently-running goroutines and checks if there are any
interestring (created by gRPC) goroutines leaked. It waits up to 10 seconds
in the error cases.
type Errorfer interface {
Errorf(format string , args ...interface{})
}
Errorfer is the interface that wraps the Errorf method. It's a subset of
testing.TB to make it easy to use Check.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.