Documentation
¶
Index ¶
- func NewTestContext(t *testing.T) (context.Context, context.CancelFunc)
- func PointerTo[T any](x T) *T
- func SleepWithContext(ctx context.Context, d time.Duration)
- func WaitErrWithTimeout(t *testing.T, ch <-chan error, timeout time.Duration) error
- func WaitGroupWithContext(t *testing.T, ctx context.Context, wg *sync.WaitGroup)
- func WaitGroupWithTimeout(t *testing.T, wg *sync.WaitGroup, timeout time.Duration, msg string)
- func WaitSignalWithTimeout(t *testing.T, ch <-chan struct{}, timeout time.Duration, msg string)
- type Key
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestContext ¶ added in v0.15.4
func SleepWithContext ¶ added in v0.15.4
func WaitErrWithTimeout ¶ added in v0.15.4
WaitErrWithTimeout waits to receive an error from ch or fails on timeout.
func WaitGroupWithContext ¶ added in v0.15.4
func WaitGroupWithTimeout ¶ added in v0.15.4
WaitGroupWithTimeout waits for wg with timeout, failing the test with msg on timeout.
Types ¶
Click to show internal directories.
Click to hide internal directories.