mock

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCodec

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

MockCodec is a mock of Codec interface.

func NewMockCodec

func NewMockCodec(ctrl *gomock.Controller) *MockCodec

NewMockCodec creates a new mock instance.

func (*MockCodec) Decode

func (m *MockCodec) Decode(arg0 []byte, arg1 interface{}) error

Decode mocks base method.

func (*MockCodec) EXPECT

func (m *MockCodec) EXPECT() *MockCodecMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCodec) Encode

func (m *MockCodec) Encode(arg0 interface{}) ([]byte, error)

Encode mocks base method.

type MockCodecMockRecorder

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

MockCodecMockRecorder is the mock recorder for MockCodec.

func (*MockCodecMockRecorder) Decode

func (mr *MockCodecMockRecorder) Decode(arg0, arg1 interface{}) *gomock.Call

Decode indicates an expected call of Decode.

func (*MockCodecMockRecorder) Encode

func (mr *MockCodecMockRecorder) Encode(arg0 interface{}) *gomock.Call

Encode indicates an expected call of Encode.

type MockError

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

MockError is a mock of Error interface.

func NewMockError

func NewMockError(ctrl *gomock.Controller) *MockError

NewMockError creates a new mock instance.

func (*MockError) EXPECT

func (m *MockError) EXPECT() *MockErrorMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockError) Error

func (m *MockError) Error() string

Error mocks base method.

func (*MockError) Temporary

func (m *MockError) Temporary() bool

Temporary mocks base method.

func (*MockError) Timeout

func (m *MockError) Timeout() bool

Timeout mocks base method.

type MockErrorMockRecorder

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

MockErrorMockRecorder is the mock recorder for MockError.

func (*MockErrorMockRecorder) Error

func (mr *MockErrorMockRecorder) Error() *gomock.Call

Error indicates an expected call of Error.

func (*MockErrorMockRecorder) Temporary

func (mr *MockErrorMockRecorder) Temporary() *gomock.Call

Temporary indicates an expected call of Temporary.

func (*MockErrorMockRecorder) Timeout

func (mr *MockErrorMockRecorder) Timeout() *gomock.Call

Timeout indicates an expected call of Timeout.

type MockListener

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

MockListener is a mock of Listener interface.

func NewMockListener

func NewMockListener(ctrl *gomock.Controller) *MockListener

NewMockListener creates a new mock instance.

func (*MockListener) Accept

func (m *MockListener) Accept() (net.Conn, error)

Accept mocks base method.

func (*MockListener) Addr

func (m *MockListener) Addr() net.Addr

Addr mocks base method.

func (*MockListener) Close

func (m *MockListener) Close() error

Close mocks base method.

func (*MockListener) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

type MockListenerMockRecorder

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

MockListenerMockRecorder is the mock recorder for MockListener.

func (*MockListenerMockRecorder) Accept

func (mr *MockListenerMockRecorder) Accept() *gomock.Call

Accept indicates an expected call of Accept.

func (*MockListenerMockRecorder) Addr

func (mr *MockListenerMockRecorder) Addr() *gomock.Call

Addr indicates an expected call of Addr.

func (*MockListenerMockRecorder) Close

func (mr *MockListenerMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

type MockPacker

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

MockPacker is a mock of Packer interface.

func NewMockPacker

func NewMockPacker(ctrl *gomock.Controller) *MockPacker

NewMockPacker creates a new mock instance.

func (*MockPacker) EXPECT

func (m *MockPacker) EXPECT() *MockPackerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPacker) Pack

func (m *MockPacker) Pack(arg0 *message.Entry) ([]byte, error)

Pack mocks base method.

func (*MockPacker) Unpack

func (m *MockPacker) Unpack(arg0 io.Reader) (*message.Entry, error)

Unpack mocks base method.

type MockPackerMockRecorder

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

MockPackerMockRecorder is the mock recorder for MockPacker.

func (*MockPackerMockRecorder) Pack

func (mr *MockPackerMockRecorder) Pack(arg0 interface{}) *gomock.Call

Pack indicates an expected call of Pack.

func (*MockPackerMockRecorder) Unpack

func (mr *MockPackerMockRecorder) Unpack(arg0 interface{}) *gomock.Call

Unpack indicates an expected call of Unpack.

Jump to

Keyboard shortcuts

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