mock

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReader

func NewReader(pth string) *reader

Types

type Writer added in v0.5.0

type Writer struct {
	*nop.Writer

	WriteDelay time.Duration
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter(pth string) *Writer

func (*Writer) AddDelay added in v0.5.0

func (w *Writer) AddDelay(d time.Duration) *Writer

func (*Writer) GetLines added in v0.5.0

func (w *Writer) GetLines() []string

func (*Writer) Write added in v0.5.0

func (w *Writer) Write(p []byte) (n int, err error)

func (*Writer) WriteLine added in v0.5.0

func (w *Writer) WriteLine(ln []byte) (err error)

Jump to

Keyboard shortcuts

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