Documentation ¶
Overview ¶
Package net is a generated GoMock package.
Index ¶
- type MockAddr
- type MockAddrMockRecorder
- type MockConn
- func (m *MockConn) Close() error
- func (m *MockConn) EXPECT() *MockConnMockRecorder
- func (m *MockConn) LocalAddr() net.Addr
- func (m *MockConn) Read(b []byte) (int, error)
- func (m *MockConn) RemoteAddr() net.Addr
- func (m *MockConn) SetDeadline(t time.Time) error
- func (m *MockConn) SetReadDeadline(t time.Time) error
- func (m *MockConn) SetWriteDeadline(t time.Time) error
- func (m *MockConn) Write(b []byte) (int, error)
- type MockConnMockRecorder
- func (mr *MockConnMockRecorder) Close() *gomock.Call
- func (mr *MockConnMockRecorder) LocalAddr() *gomock.Call
- func (mr *MockConnMockRecorder) Read(b interface{}) *gomock.Call
- func (mr *MockConnMockRecorder) RemoteAddr() *gomock.Call
- func (mr *MockConnMockRecorder) SetDeadline(t interface{}) *gomock.Call
- func (mr *MockConnMockRecorder) SetReadDeadline(t interface{}) *gomock.Call
- func (mr *MockConnMockRecorder) SetWriteDeadline(t interface{}) *gomock.Call
- func (mr *MockConnMockRecorder) Write(b interface{}) *gomock.Call
- type MockError
- type MockErrorMockRecorder
- type MockListener
- type MockListenerMockRecorder
- type MockPacketConn
- func (m *MockPacketConn) Close() error
- func (m *MockPacketConn) EXPECT() *MockPacketConnMockRecorder
- func (m *MockPacketConn) LocalAddr() net.Addr
- func (m *MockPacketConn) ReadFrom(p []byte) (int, net.Addr, error)
- func (m *MockPacketConn) SetDeadline(t time.Time) error
- func (m *MockPacketConn) SetReadDeadline(t time.Time) error
- func (m *MockPacketConn) SetWriteDeadline(t time.Time) error
- func (m *MockPacketConn) WriteTo(p []byte, addr net.Addr) (int, error)
- type MockPacketConnMockRecorder
- func (mr *MockPacketConnMockRecorder) Close() *gomock.Call
- func (mr *MockPacketConnMockRecorder) LocalAddr() *gomock.Call
- func (mr *MockPacketConnMockRecorder) ReadFrom(p interface{}) *gomock.Call
- func (mr *MockPacketConnMockRecorder) SetDeadline(t interface{}) *gomock.Call
- func (mr *MockPacketConnMockRecorder) SetReadDeadline(t interface{}) *gomock.Call
- func (mr *MockPacketConnMockRecorder) SetWriteDeadline(t interface{}) *gomock.Call
- func (mr *MockPacketConnMockRecorder) WriteTo(p, addr interface{}) *gomock.Call
- type MockbuffersWriter
- type MockbuffersWriterMockRecorder
- type Mocktemporary
- type MocktemporaryMockRecorder
- type Mocktimeout
- type MocktimeoutMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAddr ¶
type MockAddr struct {
// contains filtered or unexported fields
}
MockAddr is a mock of Addr interface.
func NewMockAddr ¶
func NewMockAddr(ctrl *gomock.Controller) *MockAddr
NewMockAddr creates a new mock instance.
func (*MockAddr) EXPECT ¶
func (m *MockAddr) EXPECT() *MockAddrMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAddrMockRecorder ¶
type MockAddrMockRecorder struct {
// contains filtered or unexported fields
}
MockAddrMockRecorder is the mock recorder for MockAddr.
func (*MockAddrMockRecorder) Network ¶
func (mr *MockAddrMockRecorder) Network() *gomock.Call
Network indicates an expected call of Network.
func (*MockAddrMockRecorder) String ¶
func (mr *MockAddrMockRecorder) String() *gomock.Call
String indicates an expected call of String.
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(b 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(t interface{}) *gomock.Call
SetDeadline indicates an expected call of SetDeadline.
func (*MockConnMockRecorder) SetReadDeadline ¶
func (mr *MockConnMockRecorder) SetReadDeadline(t interface{}) *gomock.Call
SetReadDeadline indicates an expected call of SetReadDeadline.
func (*MockConnMockRecorder) SetWriteDeadline ¶
func (mr *MockConnMockRecorder) SetWriteDeadline(t interface{}) *gomock.Call
SetWriteDeadline indicates an expected call of SetWriteDeadline.
func (*MockConnMockRecorder) Write ¶
func (mr *MockConnMockRecorder) Write(b 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 MockPacketConn ¶
type MockPacketConn struct {
// contains filtered or unexported fields
}
MockPacketConn is a mock of PacketConn interface.
func NewMockPacketConn ¶
func NewMockPacketConn(ctrl *gomock.Controller) *MockPacketConn
NewMockPacketConn creates a new mock instance.
func (*MockPacketConn) EXPECT ¶
func (m *MockPacketConn) EXPECT() *MockPacketConnMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPacketConn) LocalAddr ¶
func (m *MockPacketConn) LocalAddr() net.Addr
LocalAddr mocks base method.
func (*MockPacketConn) SetDeadline ¶
func (m *MockPacketConn) SetDeadline(t time.Time) error
SetDeadline mocks base method.
func (*MockPacketConn) SetReadDeadline ¶
func (m *MockPacketConn) SetReadDeadline(t time.Time) error
SetReadDeadline mocks base method.
func (*MockPacketConn) SetWriteDeadline ¶
func (m *MockPacketConn) SetWriteDeadline(t time.Time) error
SetWriteDeadline mocks base method.
type MockPacketConnMockRecorder ¶
type MockPacketConnMockRecorder struct {
// contains filtered or unexported fields
}
MockPacketConnMockRecorder is the mock recorder for MockPacketConn.
func (*MockPacketConnMockRecorder) Close ¶
func (mr *MockPacketConnMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockPacketConnMockRecorder) LocalAddr ¶
func (mr *MockPacketConnMockRecorder) LocalAddr() *gomock.Call
LocalAddr indicates an expected call of LocalAddr.
func (*MockPacketConnMockRecorder) ReadFrom ¶
func (mr *MockPacketConnMockRecorder) ReadFrom(p interface{}) *gomock.Call
ReadFrom indicates an expected call of ReadFrom.
func (*MockPacketConnMockRecorder) SetDeadline ¶
func (mr *MockPacketConnMockRecorder) SetDeadline(t interface{}) *gomock.Call
SetDeadline indicates an expected call of SetDeadline.
func (*MockPacketConnMockRecorder) SetReadDeadline ¶
func (mr *MockPacketConnMockRecorder) SetReadDeadline(t interface{}) *gomock.Call
SetReadDeadline indicates an expected call of SetReadDeadline.
func (*MockPacketConnMockRecorder) SetWriteDeadline ¶
func (mr *MockPacketConnMockRecorder) SetWriteDeadline(t interface{}) *gomock.Call
SetWriteDeadline indicates an expected call of SetWriteDeadline.
func (*MockPacketConnMockRecorder) WriteTo ¶
func (mr *MockPacketConnMockRecorder) WriteTo(p, addr interface{}) *gomock.Call
WriteTo indicates an expected call of WriteTo.
type MockbuffersWriter ¶
type MockbuffersWriter struct {
// contains filtered or unexported fields
}
MockbuffersWriter is a mock of buffersWriter interface.
func NewMockbuffersWriter ¶
func NewMockbuffersWriter(ctrl *gomock.Controller) *MockbuffersWriter
NewMockbuffersWriter creates a new mock instance.
func (*MockbuffersWriter) EXPECT ¶
func (m *MockbuffersWriter) EXPECT() *MockbuffersWriterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockbuffersWriterMockRecorder ¶
type MockbuffersWriterMockRecorder struct {
// contains filtered or unexported fields
}
MockbuffersWriterMockRecorder is the mock recorder for MockbuffersWriter.
type Mocktemporary ¶
type Mocktemporary struct {
// contains filtered or unexported fields
}
Mocktemporary is a mock of temporary interface.
func NewMocktemporary ¶
func NewMocktemporary(ctrl *gomock.Controller) *Mocktemporary
NewMocktemporary creates a new mock instance.
func (*Mocktemporary) EXPECT ¶
func (m *Mocktemporary) EXPECT() *MocktemporaryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*Mocktemporary) Temporary ¶
func (m *Mocktemporary) Temporary() bool
Temporary mocks base method.
type MocktemporaryMockRecorder ¶
type MocktemporaryMockRecorder struct {
// contains filtered or unexported fields
}
MocktemporaryMockRecorder is the mock recorder for Mocktemporary.
func (*MocktemporaryMockRecorder) Temporary ¶
func (mr *MocktemporaryMockRecorder) Temporary() *gomock.Call
Temporary indicates an expected call of Temporary.
type Mocktimeout ¶
type Mocktimeout struct {
// contains filtered or unexported fields
}
Mocktimeout is a mock of timeout interface.
func NewMocktimeout ¶
func NewMocktimeout(ctrl *gomock.Controller) *Mocktimeout
NewMocktimeout creates a new mock instance.
func (*Mocktimeout) EXPECT ¶
func (m *Mocktimeout) EXPECT() *MocktimeoutMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MocktimeoutMockRecorder ¶
type MocktimeoutMockRecorder struct {
// contains filtered or unexported fields
}
MocktimeoutMockRecorder is the mock recorder for Mocktimeout.
func (*MocktimeoutMockRecorder) Timeout ¶
func (mr *MocktimeoutMockRecorder) Timeout() *gomock.Call
Timeout indicates an expected call of Timeout.