Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockCodec
- type MockCodecMockRecorder
- type MockConn
- func (m *MockConn) Close() error
- func (m *MockConn) EXPECT() *MockConnMockRecorder
- func (m *MockConn) LocalAddr() net.Addr
- func (m *MockConn) Read(arg0 []byte) (int, error)
- func (m *MockConn) RemoteAddr() net.Addr
- func (m *MockConn) SetDeadline(arg0 time.Time) error
- func (m *MockConn) SetReadDeadline(arg0 time.Time) error
- func (m *MockConn) SetWriteDeadline(arg0 time.Time) error
- func (m *MockConn) Write(arg0 []byte) (int, error)
- type MockConnMockRecorder
- func (mr *MockConnMockRecorder) Close() *gomock.Call
- func (mr *MockConnMockRecorder) LocalAddr() *gomock.Call
- func (mr *MockConnMockRecorder) Read(arg0 interface{}) *gomock.Call
- func (mr *MockConnMockRecorder) RemoteAddr() *gomock.Call
- func (mr *MockConnMockRecorder) SetDeadline(arg0 interface{}) *gomock.Call
- func (mr *MockConnMockRecorder) SetReadDeadline(arg0 interface{}) *gomock.Call
- func (mr *MockConnMockRecorder) SetWriteDeadline(arg0 interface{}) *gomock.Call
- func (mr *MockConnMockRecorder) Write(arg0 interface{}) *gomock.Call
- type MockError
- type MockErrorMockRecorder
- type MockListener
- type MockListenerMockRecorder
- type MockPacker
- type MockPackerMockRecorder
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) EXPECT ¶
func (m *MockCodec) EXPECT() *MockCodecMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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) 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) RemoteAddr ¶ added in v0.0.8
RemoteAddr mocks base method.
func (*MockConn) SetDeadline ¶ added in v0.0.8
SetDeadline mocks base method.
func (*MockConn) SetReadDeadline ¶ added in v0.0.8
SetReadDeadline mocks base method.
func (*MockConn) SetWriteDeadline ¶ added in v0.0.8
SetWriteDeadline 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.
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) EXPECT ¶
func (m *MockListener) EXPECT() *MockListenerMockRecorder
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.
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.