Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Check ¶
Check reports error if the test is leaking goroutine. Default timeout is 3s. Default ignore is gotrace.IgnoreCurrent() .
This check will become useless if t.Parallel() is called for multiple tests, because the test framework will execute tests at the same time which makes it impossible to write a correct ignore function to detect which goroutine is spawned by current test. But you can still use CheckMain to check leak, because it runs after all tests are settled.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.