testutil

package
v0.0.7-pre Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadChannel

func ReadChannel[T any](t *testing.T, inCh <-chan T, timeout time.Duration) T

ReadChannel tries to read a message from a channel and returns it. If there isn't any message after the given timeout, it fails the provided test

Types

This section is empty.

Jump to

Keyboard shortcuts

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