Documentation
¶
Index ¶
- func BoolIs(t testing.TB, got, want bool)
- func Chan2NotWritten[T any, U any](t testing.TB, c chan T, d chan U, timeout time.Duration)
- func ChanNotWritten[T any](t testing.TB, c chan T, timeout time.Duration)
- func ChanWritten[T any](t testing.TB, c chan T) T
- func ContextDone(t testing.TB, ctx context.Context)
- func DeepEqual[T any](t testing.TB, got, want T)
- func DoesNotBlock(t testing.TB, f func())
- func ErrorIs(t testing.TB, got, want error)
- func NilErr(t testing.TB, err error)
- func NilErrFromChan(t testing.TB, errChan chan error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Chan2NotWritten ¶
Chan2NotWritten asserts that the chans are not written at least until the passed timeout value.
func ChanNotWritten ¶
ChanNotWritten asserts that the chan is not written at least until the passed timeout value.
func ChanWritten ¶
ChanWritten returns the value written to chan c or times out.
func ContextDone ¶
ContextDone asserts the passed context is done.
func DoesNotBlock ¶
DoesNotBlock asserts that calling f() does not block for an inordinate amount of time.
func NilErrFromChan ¶
NilErrFromChan fails the test if a non-nil error is received in the chan or if the channel fails to be written to in 30 seconds.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.