testutils

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrClosed = errors.New("closed")

Functions

This section is empty.

Types

type BlockingRW

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

BlockingRW implements io.Reader, Writer and Closer, but only returns when closed

func NewBlockingRW added in v1.12.1

func NewBlockingRW() *BlockingRW

func (*BlockingRW) Close added in v1.12.1

func (rw *BlockingRW) Close() error

func (*BlockingRW) Read

func (rw *BlockingRW) Read(p []byte) (int, error)

func (*BlockingRW) Write

func (rw *BlockingRW) Write(p []byte) (int, error)

type NoopCloser added in v1.13.0

type NoopCloser struct{}

func (NoopCloser) Close added in v1.13.0

func (NoopCloser) Close() error

type NoopRW

type NoopRW struct{}

NoopRW implements io.Reader and Writer but never returns when called

func (*NoopRW) Read

func (rw *NoopRW) Read(p []byte) (n int, err error)

func (*NoopRW) Write

func (rw *NoopRW) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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