Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockHost
- func (m *MockHost) ConnManager() connmgr.ConnManager
- func (m *MockHost) EXPECT() *MockHostMockRecorder
- func (m *MockHost) Network() network.Network
- func (m *MockHost) NewStream(arg0 context.Context, arg1 peer.ID, arg2 ...protocol.ID) (network.Stream, error)
- func (m *MockHost) SetStreamHandler(arg0 protocol.ID, arg1 network.StreamHandler)
- type MockHostConnManagerCall
- type MockHostMockRecorder
- func (mr *MockHostMockRecorder) ConnManager() *MockHostConnManagerCall
- func (mr *MockHostMockRecorder) Network() *MockHostNetworkCall
- func (mr *MockHostMockRecorder) NewStream(arg0, arg1 any, arg2 ...any) *MockHostNewStreamCall
- func (mr *MockHostMockRecorder) SetStreamHandler(arg0, arg1 any) *MockHostSetStreamHandlerCall
- type MockHostNetworkCall
- type MockHostNewStreamCall
- func (c *MockHostNewStreamCall) Do(f func(context.Context, peer.ID, ...protocol.ID) (network.Stream, error)) *MockHostNewStreamCall
- func (c *MockHostNewStreamCall) DoAndReturn(f func(context.Context, peer.ID, ...protocol.ID) (network.Stream, error)) *MockHostNewStreamCall
- func (c *MockHostNewStreamCall) Return(arg0 network.Stream, arg1 error) *MockHostNewStreamCall
- type MockHostSetStreamHandlerCall
- func (c *MockHostSetStreamHandlerCall) Do(f func(protocol.ID, network.StreamHandler)) *MockHostSetStreamHandlerCall
- func (c *MockHostSetStreamHandlerCall) DoAndReturn(f func(protocol.ID, network.StreamHandler)) *MockHostSetStreamHandlerCall
- func (c *MockHostSetStreamHandlerCall) Return() *MockHostSetStreamHandlerCall
- type MockpeerStream
- type MockpeerStreamCloseCall
- type MockpeerStreamMockRecorder
- func (mr *MockpeerStreamMockRecorder) Close() *MockpeerStreamCloseCall
- func (mr *MockpeerStreamMockRecorder) Read(p any) *MockpeerStreamReadCall
- func (mr *MockpeerStreamMockRecorder) SetDeadline(arg0 any) *MockpeerStreamSetDeadlineCall
- func (mr *MockpeerStreamMockRecorder) Write(p any) *MockpeerStreamWriteCall
- type MockpeerStreamReadCall
- type MockpeerStreamSetDeadlineCall
- type MockpeerStreamWriteCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockHost ¶
type MockHost struct {
// contains filtered or unexported fields
}
MockHost is a mock of Host interface.
func NewMockHost ¶
func NewMockHost(ctrl *gomock.Controller) *MockHost
NewMockHost creates a new mock instance.
func (*MockHost) ConnManager ¶ added in v1.3.10
func (m *MockHost) ConnManager() connmgr.ConnManager
ConnManager mocks base method.
func (*MockHost) EXPECT ¶
func (m *MockHost) EXPECT() *MockHostMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHost) NewStream ¶
func (m *MockHost) NewStream(arg0 context.Context, arg1 peer.ID, arg2 ...protocol.ID) (network.Stream, error)
NewStream mocks base method.
func (*MockHost) SetStreamHandler ¶
func (m *MockHost) SetStreamHandler(arg0 protocol.ID, arg1 network.StreamHandler)
SetStreamHandler mocks base method.
type MockHostConnManagerCall ¶ added in v1.4.0
MockHostConnManagerCall wrap *gomock.Call
func (*MockHostConnManagerCall) Do ¶ added in v1.4.0
func (c *MockHostConnManagerCall) Do(f func() connmgr.ConnManager) *MockHostConnManagerCall
Do rewrite *gomock.Call.Do
func (*MockHostConnManagerCall) DoAndReturn ¶ added in v1.4.0
func (c *MockHostConnManagerCall) DoAndReturn(f func() connmgr.ConnManager) *MockHostConnManagerCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockHostConnManagerCall) Return ¶ added in v1.4.0
func (c *MockHostConnManagerCall) Return(arg0 connmgr.ConnManager) *MockHostConnManagerCall
Return rewrite *gomock.Call.Return
type MockHostMockRecorder ¶
type MockHostMockRecorder struct {
// contains filtered or unexported fields
}
MockHostMockRecorder is the mock recorder for MockHost.
func (*MockHostMockRecorder) ConnManager ¶ added in v1.3.10
func (mr *MockHostMockRecorder) ConnManager() *MockHostConnManagerCall
ConnManager indicates an expected call of ConnManager.
func (*MockHostMockRecorder) Network ¶
func (mr *MockHostMockRecorder) Network() *MockHostNetworkCall
Network indicates an expected call of Network.
func (*MockHostMockRecorder) NewStream ¶
func (mr *MockHostMockRecorder) NewStream(arg0, arg1 any, arg2 ...any) *MockHostNewStreamCall
NewStream indicates an expected call of NewStream.
func (*MockHostMockRecorder) SetStreamHandler ¶
func (mr *MockHostMockRecorder) SetStreamHandler(arg0, arg1 any) *MockHostSetStreamHandlerCall
SetStreamHandler indicates an expected call of SetStreamHandler.
type MockHostNetworkCall ¶ added in v1.4.0
MockHostNetworkCall wrap *gomock.Call
func (*MockHostNetworkCall) Do ¶ added in v1.4.0
func (c *MockHostNetworkCall) Do(f func() network.Network) *MockHostNetworkCall
Do rewrite *gomock.Call.Do
func (*MockHostNetworkCall) DoAndReturn ¶ added in v1.4.0
func (c *MockHostNetworkCall) DoAndReturn(f func() network.Network) *MockHostNetworkCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockHostNetworkCall) Return ¶ added in v1.4.0
func (c *MockHostNetworkCall) Return(arg0 network.Network) *MockHostNetworkCall
Return rewrite *gomock.Call.Return
type MockHostNewStreamCall ¶ added in v1.4.0
MockHostNewStreamCall wrap *gomock.Call
func (*MockHostNewStreamCall) Do ¶ added in v1.4.0
func (c *MockHostNewStreamCall) Do(f func(context.Context, peer.ID, ...protocol.ID) (network.Stream, error)) *MockHostNewStreamCall
Do rewrite *gomock.Call.Do
func (*MockHostNewStreamCall) DoAndReturn ¶ added in v1.4.0
func (c *MockHostNewStreamCall) DoAndReturn(f func(context.Context, peer.ID, ...protocol.ID) (network.Stream, error)) *MockHostNewStreamCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockHostNewStreamCall) Return ¶ added in v1.4.0
func (c *MockHostNewStreamCall) Return(arg0 network.Stream, arg1 error) *MockHostNewStreamCall
Return rewrite *gomock.Call.Return
type MockHostSetStreamHandlerCall ¶ added in v1.4.0
MockHostSetStreamHandlerCall wrap *gomock.Call
func (*MockHostSetStreamHandlerCall) Do ¶ added in v1.4.0
func (c *MockHostSetStreamHandlerCall) Do(f func(protocol.ID, network.StreamHandler)) *MockHostSetStreamHandlerCall
Do rewrite *gomock.Call.Do
func (*MockHostSetStreamHandlerCall) DoAndReturn ¶ added in v1.4.0
func (c *MockHostSetStreamHandlerCall) DoAndReturn(f func(protocol.ID, network.StreamHandler)) *MockHostSetStreamHandlerCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockHostSetStreamHandlerCall) Return ¶ added in v1.4.0
func (c *MockHostSetStreamHandlerCall) Return() *MockHostSetStreamHandlerCall
Return rewrite *gomock.Call.Return
type MockpeerStream ¶ added in v1.3.6
type MockpeerStream struct {
// contains filtered or unexported fields
}
MockpeerStream is a mock of peerStream interface.
func NewMockpeerStream ¶ added in v1.3.6
func NewMockpeerStream(ctrl *gomock.Controller) *MockpeerStream
NewMockpeerStream creates a new mock instance.
func (*MockpeerStream) Close ¶ added in v1.3.6
func (m *MockpeerStream) Close() error
Close mocks base method.
func (*MockpeerStream) EXPECT ¶ added in v1.3.6
func (m *MockpeerStream) EXPECT() *MockpeerStreamMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockpeerStream) Read ¶ added in v1.3.6
func (m *MockpeerStream) Read(p []byte) (int, error)
Read mocks base method.
func (*MockpeerStream) SetDeadline ¶ added in v1.3.6
func (m *MockpeerStream) SetDeadline(arg0 time.Time) error
SetDeadline mocks base method.
type MockpeerStreamCloseCall ¶ added in v1.4.0
MockpeerStreamCloseCall wrap *gomock.Call
func (*MockpeerStreamCloseCall) Do ¶ added in v1.4.0
func (c *MockpeerStreamCloseCall) Do(f func() error) *MockpeerStreamCloseCall
Do rewrite *gomock.Call.Do
func (*MockpeerStreamCloseCall) DoAndReturn ¶ added in v1.4.0
func (c *MockpeerStreamCloseCall) DoAndReturn(f func() error) *MockpeerStreamCloseCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockpeerStreamCloseCall) Return ¶ added in v1.4.0
func (c *MockpeerStreamCloseCall) Return(arg0 error) *MockpeerStreamCloseCall
Return rewrite *gomock.Call.Return
type MockpeerStreamMockRecorder ¶ added in v1.3.6
type MockpeerStreamMockRecorder struct {
// contains filtered or unexported fields
}
MockpeerStreamMockRecorder is the mock recorder for MockpeerStream.
func (*MockpeerStreamMockRecorder) Close ¶ added in v1.3.6
func (mr *MockpeerStreamMockRecorder) Close() *MockpeerStreamCloseCall
Close indicates an expected call of Close.
func (*MockpeerStreamMockRecorder) Read ¶ added in v1.3.6
func (mr *MockpeerStreamMockRecorder) Read(p any) *MockpeerStreamReadCall
Read indicates an expected call of Read.
func (*MockpeerStreamMockRecorder) SetDeadline ¶ added in v1.3.6
func (mr *MockpeerStreamMockRecorder) SetDeadline(arg0 any) *MockpeerStreamSetDeadlineCall
SetDeadline indicates an expected call of SetDeadline.
func (*MockpeerStreamMockRecorder) Write ¶ added in v1.3.6
func (mr *MockpeerStreamMockRecorder) Write(p any) *MockpeerStreamWriteCall
Write indicates an expected call of Write.
type MockpeerStreamReadCall ¶ added in v1.4.0
MockpeerStreamReadCall wrap *gomock.Call
func (*MockpeerStreamReadCall) Do ¶ added in v1.4.0
func (c *MockpeerStreamReadCall) Do(f func([]byte) (int, error)) *MockpeerStreamReadCall
Do rewrite *gomock.Call.Do
func (*MockpeerStreamReadCall) DoAndReturn ¶ added in v1.4.0
func (c *MockpeerStreamReadCall) DoAndReturn(f func([]byte) (int, error)) *MockpeerStreamReadCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockpeerStreamReadCall) Return ¶ added in v1.4.0
func (c *MockpeerStreamReadCall) Return(n int, err error) *MockpeerStreamReadCall
Return rewrite *gomock.Call.Return
type MockpeerStreamSetDeadlineCall ¶ added in v1.4.0
MockpeerStreamSetDeadlineCall wrap *gomock.Call
func (*MockpeerStreamSetDeadlineCall) Do ¶ added in v1.4.0
func (c *MockpeerStreamSetDeadlineCall) Do(f func(time.Time) error) *MockpeerStreamSetDeadlineCall
Do rewrite *gomock.Call.Do
func (*MockpeerStreamSetDeadlineCall) DoAndReturn ¶ added in v1.4.0
func (c *MockpeerStreamSetDeadlineCall) DoAndReturn(f func(time.Time) error) *MockpeerStreamSetDeadlineCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockpeerStreamSetDeadlineCall) Return ¶ added in v1.4.0
func (c *MockpeerStreamSetDeadlineCall) Return(arg0 error) *MockpeerStreamSetDeadlineCall
Return rewrite *gomock.Call.Return
type MockpeerStreamWriteCall ¶ added in v1.4.0
MockpeerStreamWriteCall wrap *gomock.Call
func (*MockpeerStreamWriteCall) Do ¶ added in v1.4.0
func (c *MockpeerStreamWriteCall) Do(f func([]byte) (int, error)) *MockpeerStreamWriteCall
Do rewrite *gomock.Call.Do
func (*MockpeerStreamWriteCall) DoAndReturn ¶ added in v1.4.0
func (c *MockpeerStreamWriteCall) DoAndReturn(f func([]byte) (int, error)) *MockpeerStreamWriteCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockpeerStreamWriteCall) Return ¶ added in v1.4.0
func (c *MockpeerStreamWriteCall) Return(n int, err error) *MockpeerStreamWriteCall
Return rewrite *gomock.Call.Return