iotest

package
v0.0.0-...-fab57c2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package iotest provides a mockable wrapper for testing/iotest.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct{}

func (*Impl) DataErrReader

func (*Impl) DataErrReader(r io.Reader) io.Reader

func (*Impl) ErrReader

func (*Impl) ErrReader(err error) io.Reader

func (*Impl) HalfReader

func (*Impl) HalfReader(r io.Reader) io.Reader

func (*Impl) NewReadLogger

func (*Impl) NewReadLogger(prefix string, r io.Reader) io.Reader

func (*Impl) NewWriteLogger

func (*Impl) NewWriteLogger(prefix string, w io.Writer) io.Writer

func (*Impl) OneByteReader

func (*Impl) OneByteReader(r io.Reader) io.Reader

func (*Impl) TestReader

func (*Impl) TestReader(r io.Reader, content []byte) error

func (*Impl) TimeoutReader

func (*Impl) TimeoutReader(r io.Reader) io.Reader

func (*Impl) TruncateWriter

func (*Impl) TruncateWriter(w io.Writer, n int64) io.Writer

type Interface

type Interface interface {
	DataErrReader(r io.Reader) io.Reader
	ErrReader(err error) io.Reader
	HalfReader(r io.Reader) io.Reader
	NewReadLogger(prefix string, r io.Reader) io.Reader
	NewWriteLogger(prefix string, w io.Writer) io.Writer
	OneByteReader(r io.Reader) io.Reader
	TestReader(r io.Reader, content []byte) error
	TimeoutReader(r io.Reader) io.Reader
	TruncateWriter(w io.Writer, n int64) io.Writer
}

Jump to

Keyboard shortcuts

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