mocking

package
v0.0.0-...-fc75448 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Countdown

func Countdown(out io.Writer, sleeper Sleeper)

Types

type ConfigurableSleeper

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

func (*ConfigurableSleeper) Sleep

func (o *ConfigurableSleeper) Sleep()

type CountdownOperationSpy

type CountdownOperationSpy struct {
	Calls []string
}

func (*CountdownOperationSpy) Sleep

func (s *CountdownOperationSpy) Sleep()

func (*CountdownOperationSpy) Write

func (s *CountdownOperationSpy) Write(p []byte) (n int, err error)

type Sleeper

type Sleeper interface {
	Sleep()
}

type SpySleeper

type SpySleeper struct {
	Calls int
}

func (*SpySleeper) Sleep

func (s *SpySleeper) Sleep()

Jump to

Keyboard shortcuts

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