helpers

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsyncWaiter

type AsyncWaiter sync.WaitGroup

AsyncWaiter merges a waitgroup and a channel to provide syntactic sugar in asynchronous tests, making them failing if the waitGroup does not reach the 0 status after a given timeout.

func AsyncWait

func AsyncWait(groupLen int) *AsyncWaiter

func (*AsyncWaiter) Done

func (a *AsyncWaiter) Done()

func (*AsyncWaiter) Wait

func (a *AsyncWaiter) Wait(t *testing.T, timeout time.Duration)

Jump to

Keyboard shortcuts

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