Documentation
¶
Index ¶
- func Closed[T any](t *testing.T, ch <-chan T, args ...any)
- func Drain[T any](ch <-chan T) []T
- func Element[T any](t *testing.T, ch <-chan T, args ...any) T
- func Equal[T any](t *testing.T, actual, expected T, args ...any)
- func EqualProtobuf(t *testing.T, actual, expected proto.Message, args ...any)
- func NoElement[T any](t *testing.T, ch <-chan T, args ...any)
- func NotEqual[T any](t *testing.T, actual, expected T, args ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Drain ¶
func Drain[T any](ch <-chan T) []T
Drain returns all elements of the given channel until no element appear in a grace period.
func Equal ¶
Equal is a typed convenience wrapper over assert.Equal to make constants the correct type. Also uses the idiomatic "have before want" parameter ordering.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.