Help us shape the future of Go! Take the 2026 Go Developer Survey

fake

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fake

type Fake[T any] struct {
	// contains filtered or unexported fields
}

func New

func New[T any]() *Fake[T]

func (*Fake[T]) Close

func (f *Fake[T]) Close(t T)

func (*Fake[T]) Enqueue

func (f *Fake[T]) Enqueue(t T)

func (*Fake[T]) Reset

func (f *Fake[T]) Reset(loop.Handler[T], uint64) loop.Interface[T]

func (*Fake[T]) Run

func (f *Fake[T]) Run(ctx context.Context) error

func (*Fake[T]) WithClose

func (f *Fake[T]) WithClose(fn func(T)) *Fake[T]

func (*Fake[T]) WithEnqueue

func (f *Fake[T]) WithEnqueue(fn func(T)) *Fake[T]

func (*Fake[T]) WithRun

func (f *Fake[T]) WithRun(fn func(context.Context) error) *Fake[T]

Jump to

Keyboard shortcuts

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