Documentation ¶
Index ¶
- func AssertNoGoRoutineWithFn(t testing.TB, fn any)
- func PrintGoRoutines()
- func WaitGoRoutineWithFn(t testing.TB, fn any, opts ...func(*WaitOptions)) int
- func WithCheckInterval(checkInterval time.Duration) func(*WaitOptions)
- func WithMaxDuration(maxDuration time.Duration) func(*WaitOptions)
- func WithNumGoRoutines(numGoRoutines int) func(*WaitOptions)
- type WaitOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertNoGoRoutineWithFn ¶ added in v1.25.0
func WaitGoRoutineWithFn ¶
func WaitGoRoutineWithFn(t testing.TB, fn any, opts ...func(*WaitOptions)) int
WaitGoRoutineWithFn waits for a go routine with the given function to appear in call stacks, using different WaitOptions, and returns the number of attempts needed to find the go routine.
func WithCheckInterval ¶ added in v1.25.0
func WithCheckInterval(checkInterval time.Duration) func(*WaitOptions)
func WithMaxDuration ¶ added in v1.25.0
func WithMaxDuration(maxDuration time.Duration) func(*WaitOptions)
func WithNumGoRoutines ¶ added in v1.25.0
func WithNumGoRoutines(numGoRoutines int) func(*WaitOptions)
Types ¶
Click to show internal directories.
Click to hide internal directories.