testutil

package
v1.4.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestContext

func TestContext(t *testing.T) context.Context

TestContext returns a cancellable context bound to test lifecycle.

func WaitFor

func WaitFor(cond func() bool, timeout time.Duration) bool

WaitFor polls cond until it returns true or timeout is reached.

func WaitForChannel

func WaitForChannel[T any](ch <-chan T, timeout time.Duration) (T, bool)

WaitForChannel waits for a value from ch until timeout.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL