testutil

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultErrorWriter io.Writer = &ErrorWriter{
		Error: errors.New("error writer"),
	}
)

Functions

func Stubin added in v1.5.0

func Stubin(t *testing.T, value []byte) func()

Types

type ErrorWriter

type ErrorWriter struct {
	Error error
}

func (*ErrorWriter) Write

func (w *ErrorWriter) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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