testutils

package
v0.0.0-...-129a086 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: MIT 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

func NewBlockingRW() *BlockingRW

func (*BlockingRW) Close

func (rw *BlockingRW) Close() error

func (*BlockingRW) Read

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

func (*BlockingRW) Write

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

type NoopCloser

type NoopCloser struct{}

func (NoopCloser) Close

func (NoopCloser) Close() error

type NoopRW

type NoopRW struct{}

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

func (*NoopRW) Read

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

func (*NoopRW) Write

func (*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