Documentation ¶
Index ¶
- func SpinWaitCondition(t testing.TB, l sync.Locker, cond func() bool)
- func TestManyTimes(t testing.TB, test TestFunc, opts ...TestManyTimesOption)
- func TestManyTimesWithName(t *testing.T, name string, test TestFunc)
- func WaitChannelClosed(t testing.TB, ch empty.Chan)
- type TestFunc
- type TestManyTimesOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SpinWaitCondition ¶
SpinWaitCondition wait while cond return true with check it in loop l can be nil - then locker use for check conditions
func TestManyTimes ¶
func TestManyTimes(t testing.TB, test TestFunc, opts ...TestManyTimesOption)
Types ¶
type TestManyTimesOption ¶ added in v3.32.0
type TestManyTimesOption func(opts *testManyTimesOptions)
func WithTimeout ¶ added in v3.32.0
func WithTimeout(timeout time.Duration) TestManyTimesOption
Click to show internal directories.
Click to hide internal directories.