Documentation
¶
Overview ¶
Package iotest provides a mockable wrapper for testing/iotest.
Index ¶
- type Impl
- func (*Impl) DataErrReader(r io.Reader) io.Reader
- func (*Impl) ErrReader(err error) io.Reader
- func (*Impl) HalfReader(r io.Reader) io.Reader
- func (*Impl) NewReadLogger(prefix string, r io.Reader) io.Reader
- func (*Impl) NewWriteLogger(prefix string, w io.Writer) io.Writer
- func (*Impl) OneByteReader(r io.Reader) io.Reader
- func (*Impl) TestReader(r io.Reader, content []byte) error
- func (*Impl) TimeoutReader(r io.Reader) io.Reader
- func (*Impl) TruncateWriter(w io.Writer, n int64) io.Writer
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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
}
Click to show internal directories.
Click to hide internal directories.