package xtest
import "github.com/ydb-platform/ydb-go-sdk/v3/internal/xtest"
Index ¶
- func SpinWaitCondition(tb testing.TB, l sync.Locker, cond func() bool)
- func SpinWaitConditionWithTimeout(tb testing.TB, l sync.Locker, condWaitTimeout time.Duration, 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
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 SpinWaitConditionWithTimeout ¶
func SpinWaitConditionWithTimeout(tb testing.TB, l sync.Locker, condWaitTimeout time.Duration, cond func() bool)
SpinWaitConditionWithTimeout 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)
func TestManyTimesWithName ¶
func WaitChannelClosed ¶
Types ¶
type TestFunc ¶
type TestManyTimesOption ¶
type TestManyTimesOption func(opts *testManyTimesOptions)
func StopAfter ¶
func StopAfter(stopAfter time.Duration) TestManyTimesOption
Source Files ¶
- Version
- v3.36.1
- Published
- Aug 24, 2022
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 2 minutes ago –
Tools for package owners.