Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckTermination ¶
func CheckTermination(fn func()) bool
CheckTermination runs the function `fn` with a goroutine, and tries to get the termination status that the function terminates the execution by some panic.
This function is for testing XXXNow assertions, and those functions will set `failed` status and call `runtime.Goexit()` to stopping the execution of test.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.