Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockConnection
- func (m *MockConnection) Close() error
- func (m *MockConnection) EXPECT() *MockConnectionMockRecorder
- func (m *MockConnection) LocalAddr() net.Addr
- func (m *MockConnection) Read(b []byte) (int, error)
- func (m *MockConnection) ReadFromUDP(b []byte) (int, *net.UDPAddr, error)
- func (m *MockConnection) RemoteAddr() net.Addr
- func (m *MockConnection) SetDeadline(t time.Time) error
- func (m *MockConnection) SetReadDeadline(t time.Time) error
- func (m *MockConnection) SetWriteDeadline(t time.Time) error
- func (m *MockConnection) Write(b []byte) (int, error)
- type MockConnectionMockRecorder
- func (mr *MockConnectionMockRecorder) Close() *gomock.Call
- func (mr *MockConnectionMockRecorder) LocalAddr() *gomock.Call
- func (mr *MockConnectionMockRecorder) Read(b interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) ReadFromUDP(b interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) RemoteAddr() *gomock.Call
- func (mr *MockConnectionMockRecorder) SetDeadline(t interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) SetReadDeadline(t interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) SetWriteDeadline(t interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) Write(b interface{}) *gomock.Call
- type MockConnector
- func (m *MockConnector) DialUDP(network string, laddr, raddr *net.UDPAddr) (udp.Connection, error)
- func (m *MockConnector) EXPECT() *MockConnectorMockRecorder
- func (m *MockConnector) ListenUDP(network string, laddr *net.UDPAddr) (udp.Connection, error)
- func (m *MockConnector) ResolveUDPAddr(network, address string) (*net.UDPAddr, error)
- type MockConnectorMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConnection ¶
type MockConnection struct {
// contains filtered or unexported fields
}
MockConnection is a mock of Connection interface.
func NewMockConnection ¶
func NewMockConnection(ctrl *gomock.Controller) *MockConnection
NewMockConnection creates a new mock instance.
func (*MockConnection) EXPECT ¶
func (m *MockConnection) EXPECT() *MockConnectionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConnection) LocalAddr ¶
func (m *MockConnection) LocalAddr() net.Addr
LocalAddr mocks base method.
func (*MockConnection) Read ¶
func (m *MockConnection) Read(b []byte) (int, error)
Read mocks base method.
func (*MockConnection) ReadFromUDP ¶
ReadFromUDP mocks base method.
func (*MockConnection) RemoteAddr ¶
func (m *MockConnection) RemoteAddr() net.Addr
RemoteAddr mocks base method.
func (*MockConnection) SetDeadline ¶
func (m *MockConnection) SetDeadline(t time.Time) error
SetDeadline mocks base method.
func (*MockConnection) SetReadDeadline ¶
func (m *MockConnection) SetReadDeadline(t time.Time) error
SetReadDeadline mocks base method.
func (*MockConnection) SetWriteDeadline ¶
func (m *MockConnection) SetWriteDeadline(t time.Time) error
SetWriteDeadline mocks base method.
type MockConnectionMockRecorder ¶
type MockConnectionMockRecorder struct {
// contains filtered or unexported fields
}
MockConnectionMockRecorder is the mock recorder for MockConnection.
func (*MockConnectionMockRecorder) Close ¶
func (mr *MockConnectionMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockConnectionMockRecorder) LocalAddr ¶
func (mr *MockConnectionMockRecorder) LocalAddr() *gomock.Call
LocalAddr indicates an expected call of LocalAddr.
func (*MockConnectionMockRecorder) Read ¶
func (mr *MockConnectionMockRecorder) Read(b interface{}) *gomock.Call
Read indicates an expected call of Read.
func (*MockConnectionMockRecorder) ReadFromUDP ¶
func (mr *MockConnectionMockRecorder) ReadFromUDP(b interface{}) *gomock.Call
ReadFromUDP indicates an expected call of ReadFromUDP.
func (*MockConnectionMockRecorder) RemoteAddr ¶
func (mr *MockConnectionMockRecorder) RemoteAddr() *gomock.Call
RemoteAddr indicates an expected call of RemoteAddr.
func (*MockConnectionMockRecorder) SetDeadline ¶
func (mr *MockConnectionMockRecorder) SetDeadline(t interface{}) *gomock.Call
SetDeadline indicates an expected call of SetDeadline.
func (*MockConnectionMockRecorder) SetReadDeadline ¶
func (mr *MockConnectionMockRecorder) SetReadDeadline(t interface{}) *gomock.Call
SetReadDeadline indicates an expected call of SetReadDeadline.
func (*MockConnectionMockRecorder) SetWriteDeadline ¶
func (mr *MockConnectionMockRecorder) SetWriteDeadline(t interface{}) *gomock.Call
SetWriteDeadline indicates an expected call of SetWriteDeadline.
func (*MockConnectionMockRecorder) Write ¶
func (mr *MockConnectionMockRecorder) Write(b interface{}) *gomock.Call
Write indicates an expected call of Write.
type MockConnector ¶
type MockConnector struct {
// contains filtered or unexported fields
}
MockConnector is a mock of Connector interface.
func NewMockConnector ¶
func NewMockConnector(ctrl *gomock.Controller) *MockConnector
NewMockConnector creates a new mock instance.
func (*MockConnector) DialUDP ¶
func (m *MockConnector) DialUDP(network string, laddr, raddr *net.UDPAddr) (udp.Connection, error)
DialUDP mocks base method.
func (*MockConnector) EXPECT ¶
func (m *MockConnector) EXPECT() *MockConnectorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConnector) ListenUDP ¶
func (m *MockConnector) ListenUDP(network string, laddr *net.UDPAddr) (udp.Connection, error)
ListenUDP mocks base method.
func (*MockConnector) ResolveUDPAddr ¶
func (m *MockConnector) ResolveUDPAddr(network, address string) (*net.UDPAddr, error)
ResolveUDPAddr mocks base method.
type MockConnectorMockRecorder ¶
type MockConnectorMockRecorder struct {
// contains filtered or unexported fields
}
MockConnectorMockRecorder is the mock recorder for MockConnector.
func (*MockConnectorMockRecorder) DialUDP ¶
func (mr *MockConnectorMockRecorder) DialUDP(network, laddr, raddr interface{}) *gomock.Call
DialUDP indicates an expected call of DialUDP.
func (*MockConnectorMockRecorder) ListenUDP ¶
func (mr *MockConnectorMockRecorder) ListenUDP(network, laddr interface{}) *gomock.Call
ListenUDP indicates an expected call of ListenUDP.
func (*MockConnectorMockRecorder) ResolveUDPAddr ¶
func (mr *MockConnectorMockRecorder) ResolveUDPAddr(network, address interface{}) *gomock.Call
ResolveUDPAddr indicates an expected call of ResolveUDPAddr.