iomock

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Closer

type Closer struct {
	mock.Mock
}

Closer is an autogenerated mock type for the Closer type

func NewCloser added in v0.5.4

func NewCloser(t mockConstructorTestingTNewCloser) *Closer

NewCloser creates a new instance of Closer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Closer) Close

func (_m *Closer) Close() error

Close provides a mock function with given fields:

type ReadCloser

type ReadCloser struct {
	mock.Mock
}

ReadCloser is an autogenerated mock type for the ReadCloser type

func NewReadCloser added in v0.5.4

func NewReadCloser(t mockConstructorTestingTNewReadCloser) *ReadCloser

NewReadCloser creates a new instance of ReadCloser. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ReadCloser) Close

func (_m *ReadCloser) Close() error

Close provides a mock function with given fields:

func (*ReadCloser) Read

func (_m *ReadCloser) Read(p []byte) (int, error)

Read provides a mock function with given fields: p

type Reader

type Reader struct {
	mock.Mock
}

Reader is an autogenerated mock type for the Reader type

func NewReader added in v0.5.4

func NewReader(t mockConstructorTestingTNewReader) *Reader

NewReader creates a new instance of Reader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Reader) Write

func (_m *Reader) Write(p []byte) (int, error)

Write provides a mock function with given fields: p

type WriteCloser

type WriteCloser struct {
	mock.Mock
}

WriteCloser is an autogenerated mock type for the WriteCloser type

func NewWriteCloser added in v0.5.4

func NewWriteCloser(t mockConstructorTestingTNewWriteCloser) *WriteCloser

NewWriteCloser creates a new instance of WriteCloser. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*WriteCloser) Close

func (_m *WriteCloser) Close() error

Close provides a mock function with given fields:

func (*WriteCloser) Write

func (_m *WriteCloser) Write(p []byte) (int, error)

Write provides a mock function with given fields: p

type Writer

type Writer struct {
	mock.Mock
}

Writer is an autogenerated mock type for the Writer type

func NewWriter added in v0.5.4

func NewWriter(t mockConstructorTestingTNewWriter) *Writer

NewWriter creates a new instance of Writer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Writer) Write

func (_m *Writer) Write(p []byte) (int, error)

Write provides a mock function with given fields: p

Jump to

Keyboard shortcuts

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