Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockNetworkUtil
- func (m *MockNetworkUtil) ConnectToHost(arg0, arg1 string, arg2 bool) (net.Conn, error)
- func (m *MockNetworkUtil) EXPECT() *MockNetworkUtilMockRecorder
- func (m *MockNetworkUtil) ListenIP(arg0 string, arg1 bool) (net.Listener, error)
- func (m *MockNetworkUtil) ReadFrom(arg0 net.Conn) (int, []byte, error)
- func (m *MockNetworkUtil) WriteTo(arg0 net.Conn, arg1 []byte) error
- type MockNetworkUtilMockRecorder
- func (mr *MockNetworkUtilMockRecorder) ConnectToHost(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockNetworkUtilMockRecorder) ListenIP(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNetworkUtilMockRecorder) ReadFrom(arg0 interface{}) *gomock.Call
- func (mr *MockNetworkUtilMockRecorder) WriteTo(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockNetworkUtil ¶
type MockNetworkUtil struct {
// contains filtered or unexported fields
}
MockNetworkUtil is a mock of NetworkUtil interface.
func NewMockNetworkUtil ¶
func NewMockNetworkUtil(ctrl *gomock.Controller) *MockNetworkUtil
NewMockNetworkUtil creates a new mock instance.
func (*MockNetworkUtil) ConnectToHost ¶
ConnectToHost mocks base method.
func (*MockNetworkUtil) EXPECT ¶
func (m *MockNetworkUtil) EXPECT() *MockNetworkUtilMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockNetworkUtilMockRecorder ¶
type MockNetworkUtilMockRecorder struct {
// contains filtered or unexported fields
}
MockNetworkUtilMockRecorder is the mock recorder for MockNetworkUtil.
func (*MockNetworkUtilMockRecorder) ConnectToHost ¶
func (mr *MockNetworkUtilMockRecorder) ConnectToHost(arg0, arg1, arg2 interface{}) *gomock.Call
ConnectToHost indicates an expected call of ConnectToHost.
func (*MockNetworkUtilMockRecorder) ListenIP ¶
func (mr *MockNetworkUtilMockRecorder) ListenIP(arg0, arg1 interface{}) *gomock.Call
ListenIP indicates an expected call of ListenIP.
func (*MockNetworkUtilMockRecorder) ReadFrom ¶
func (mr *MockNetworkUtilMockRecorder) ReadFrom(arg0 interface{}) *gomock.Call
ReadFrom indicates an expected call of ReadFrom.
func (*MockNetworkUtilMockRecorder) WriteTo ¶
func (mr *MockNetworkUtilMockRecorder) WriteTo(arg0, arg1 interface{}) *gomock.Call
WriteTo indicates an expected call of WriteTo.
Click to show internal directories.
Click to hide internal directories.