mock

package
Version: v0.17.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 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
t or T : Toggle theme light dark auto
y or Y : Canonical URL