testutil

package
v0.0.0-...-84e2623 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CtxRecv

func CtxRecv[T any](ctx context.Context, c <-chan T) bool

func IsClosed

func IsClosed[T any](c <-chan T) bool

Types

type FuncMock

type FuncMock struct {
	// contains filtered or unexported fields
}

func NewFunc

func NewFunc(ctx context.Context, t *testing.T, name string) FuncMock

func (FuncMock) Called

func (c FuncMock) Called()

func (FuncMock) F

func (c FuncMock) F()

func (FuncMock) FE

func (c FuncMock) FE(e error) func() error

func (FuncMock) NotCalled

func (c FuncMock) NotCalled()

func (FuncMock) WaitCalled

func (c FuncMock) WaitCalled()

func (FuncMock) WaitNotCalled

func (c FuncMock) WaitNotCalled()

Jump to

Keyboard shortcuts

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