Documentation ¶
Index ¶
- type MockConn
- func (_m *MockConn) Close() error
- func (_m *MockConn) EXPECT() *MockConnMockRecorder
- func (_m *MockConn) LocalAddr() net.Addr
- func (_m *MockConn) Read(_param0 []byte) (int, error)
- func (_m *MockConn) RemoteAddr() net.Addr
- func (_m *MockConn) SetDeadline(_param0 time.Time) error
- func (_m *MockConn) SetReadDeadline(_param0 time.Time) error
- func (_m *MockConn) SetWriteDeadline(_param0 time.Time) error
- func (_m *MockConn) Write(_param0 []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 MockListener
- type MockListenerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConn ¶
type MockConn struct {
// contains filtered or unexported fields
}
MockConn is a mock of Conn interface
func NewMockConn ¶
func NewMockConn(ctrl *gomock.Controller) *MockConn
NewMockConn creates a new mock instance
func (*MockConn) EXPECT ¶
func (_m *MockConn) EXPECT() *MockConnMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockConn) RemoteAddr ¶
RemoteAddr mocks base method
func (*MockConn) SetDeadline ¶
SetDeadline mocks base method
func (*MockConn) SetReadDeadline ¶
SetReadDeadline mocks base method
func (*MockConn) SetWriteDeadline ¶
SetWriteDeadline mocks base method
type MockConnMockRecorder ¶
type MockConnMockRecorder struct {
// contains filtered or unexported fields
}
MockConnMockRecorder is the mock recorder for MockConn
func (*MockConnMockRecorder) Close ¶
func (_mr *MockConnMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockConnMockRecorder) LocalAddr ¶
func (_mr *MockConnMockRecorder) LocalAddr() *gomock.Call
LocalAddr indicates an expected call of LocalAddr
func (*MockConnMockRecorder) Read ¶
func (_mr *MockConnMockRecorder) Read(arg0 interface{}) *gomock.Call
Read indicates an expected call of Read
func (*MockConnMockRecorder) RemoteAddr ¶
func (_mr *MockConnMockRecorder) RemoteAddr() *gomock.Call
RemoteAddr indicates an expected call of RemoteAddr
func (*MockConnMockRecorder) SetDeadline ¶
func (_mr *MockConnMockRecorder) SetDeadline(arg0 interface{}) *gomock.Call
SetDeadline indicates an expected call of SetDeadline
func (*MockConnMockRecorder) SetReadDeadline ¶
func (_mr *MockConnMockRecorder) SetReadDeadline(arg0 interface{}) *gomock.Call
SetReadDeadline indicates an expected call of SetReadDeadline
func (*MockConnMockRecorder) SetWriteDeadline ¶
func (_mr *MockConnMockRecorder) SetWriteDeadline(arg0 interface{}) *gomock.Call
SetWriteDeadline indicates an expected call of SetWriteDeadline
func (*MockConnMockRecorder) Write ¶
func (_mr *MockConnMockRecorder) Write(arg0 interface{}) *gomock.Call
Write indicates an expected call of Write
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