mock

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

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 MockConn added in v0.0.8

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

MockConn is a mock of Conn interface.

func NewMockConn added in v0.0.8

func NewMockConn(ctrl *gomock.Controller) *MockConn

NewMockConn creates a new mock instance.

func (*MockConn) Close added in v0.0.8

func (m *MockConn) Close() error

Close mocks base method.

func (*MockConn) EXPECT added in v0.0.8

func (m *MockConn) EXPECT() *MockConnMockRecorder

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

func (*MockConn) LocalAddr added in v0.0.8

func (m *MockConn) LocalAddr() net.Addr

LocalAddr mocks base method.

func (*MockConn) Read added in v0.0.8

func (m *MockConn) Read(arg0 []byte) (int, error)

Read mocks base method.

func (*MockConn) RemoteAddr added in v0.0.8

func (m *MockConn) RemoteAddr() net.Addr

RemoteAddr mocks base method.

func (*MockConn) SetDeadline added in v0.0.8

func (m *MockConn) SetDeadline(arg0 time.Time) error

SetDeadline mocks base method.

func (*MockConn) SetReadDeadline added in v0.0.8

func (m *MockConn) SetReadDeadline(arg0 time.Time) error

SetReadDeadline mocks base method.

func (*MockConn) SetWriteDeadline added in v0.0.8

func (m *MockConn) SetWriteDeadline(arg0 time.Time) error

SetWriteDeadline mocks base method.

func (*MockConn) Write added in v0.0.8

func (m *MockConn) Write(arg0 []byte) (int, error)

Write mocks base method.

type MockConnMockRecorder added in v0.0.8

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

MockConnMockRecorder is the mock recorder for MockConn.

func (*MockConnMockRecorder) Close added in v0.0.8

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

Close indicates an expected call of Close.

func (*MockConnMockRecorder) LocalAddr added in v0.0.8

func (mr *MockConnMockRecorder) LocalAddr() *gomock.Call

LocalAddr indicates an expected call of LocalAddr.

func (*MockConnMockRecorder) Read added in v0.0.8

func (mr *MockConnMockRecorder) Read(arg0 interface{}) *gomock.Call

Read indicates an expected call of Read.

func (*MockConnMockRecorder) RemoteAddr added in v0.0.8

func (mr *MockConnMockRecorder) RemoteAddr() *gomock.Call

RemoteAddr indicates an expected call of RemoteAddr.

func (*MockConnMockRecorder) SetDeadline added in v0.0.8

func (mr *MockConnMockRecorder) SetDeadline(arg0 interface{}) *gomock.Call

SetDeadline indicates an expected call of SetDeadline.

func (*MockConnMockRecorder) SetReadDeadline added in v0.0.8

func (mr *MockConnMockRecorder) SetReadDeadline(arg0 interface{}) *gomock.Call

SetReadDeadline indicates an expected call of SetReadDeadline.

func (*MockConnMockRecorder) SetWriteDeadline added in v0.0.8

func (mr *MockConnMockRecorder) SetWriteDeadline(arg0 interface{}) *gomock.Call

SetWriteDeadline indicates an expected call of SetWriteDeadline.

func (*MockConnMockRecorder) Write added in v0.0.8

func (mr *MockConnMockRecorder) Write(arg0 interface{}) *gomock.Call

Write indicates an expected call of Write.

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.

Jump to

Keyboard shortcuts

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