Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockHost
- func (m *MockHost) Addrs() []multiaddr.Multiaddr
- func (m *MockHost) Close() error
- func (m *MockHost) ConnManager() connmgr.ConnManager
- func (m *MockHost) Connect(arg0 context.Context, arg1 peer.AddrInfo) error
- func (m *MockHost) EXPECT() *MockHostMockRecorder
- func (m *MockHost) EventBus() event.Bus
- func (m *MockHost) ID() peer.ID
- func (m *MockHost) Mux() protocol.Switch
- 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) Peerstore() peerstore.Peerstore
- func (m *MockHost) RemoveStreamHandler(arg0 protocol.ID)
- func (m *MockHost) SetStreamHandler(arg0 protocol.ID, arg1 network.StreamHandler)
- func (m *MockHost) SetStreamHandlerMatch(arg0 protocol.ID, arg1 func(protocol.ID) bool, arg2 network.StreamHandler)
- type MockHostMockRecorder
- func (mr *MockHostMockRecorder) Addrs() *gomock.Call
- func (mr *MockHostMockRecorder) Close() *gomock.Call
- func (mr *MockHostMockRecorder) ConnManager() *gomock.Call
- func (mr *MockHostMockRecorder) Connect(arg0, arg1 any) *gomock.Call
- func (mr *MockHostMockRecorder) EventBus() *gomock.Call
- func (mr *MockHostMockRecorder) ID() *gomock.Call
- func (mr *MockHostMockRecorder) Mux() *gomock.Call
- func (mr *MockHostMockRecorder) Network() *gomock.Call
- func (mr *MockHostMockRecorder) NewStream(arg0, arg1 any, arg2 ...any) *gomock.Call
- func (mr *MockHostMockRecorder) Peerstore() *gomock.Call
- func (mr *MockHostMockRecorder) RemoveStreamHandler(arg0 any) *gomock.Call
- func (mr *MockHostMockRecorder) SetStreamHandler(arg0, arg1 any) *gomock.Call
- func (mr *MockHostMockRecorder) SetStreamHandlerMatch(arg0, arg1, arg2 any) *gomock.Call
- type MockOutput
- type MockOutputMockRecorder
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 ¶
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) RemoveStreamHandler ¶
RemoveStreamHandler mocks base method.
func (*MockHost) SetStreamHandler ¶
func (m *MockHost) SetStreamHandler(arg0 protocol.ID, arg1 network.StreamHandler)
SetStreamHandler mocks base method.
func (*MockHost) SetStreamHandlerMatch ¶
func (m *MockHost) SetStreamHandlerMatch(arg0 protocol.ID, arg1 func(protocol.ID) bool, arg2 network.StreamHandler)
SetStreamHandlerMatch mocks base method.
type MockHostMockRecorder ¶
type MockHostMockRecorder struct {
// contains filtered or unexported fields
}
MockHostMockRecorder is the mock recorder for MockHost.
func (*MockHostMockRecorder) Addrs ¶
func (mr *MockHostMockRecorder) Addrs() *gomock.Call
Addrs indicates an expected call of Addrs.
func (*MockHostMockRecorder) Close ¶
func (mr *MockHostMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockHostMockRecorder) ConnManager ¶
func (mr *MockHostMockRecorder) ConnManager() *gomock.Call
ConnManager indicates an expected call of ConnManager.
func (*MockHostMockRecorder) Connect ¶
func (mr *MockHostMockRecorder) Connect(arg0, arg1 any) *gomock.Call
Connect indicates an expected call of Connect.
func (*MockHostMockRecorder) EventBus ¶
func (mr *MockHostMockRecorder) EventBus() *gomock.Call
EventBus indicates an expected call of EventBus.
func (*MockHostMockRecorder) ID ¶
func (mr *MockHostMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID.
func (*MockHostMockRecorder) Mux ¶
func (mr *MockHostMockRecorder) Mux() *gomock.Call
Mux indicates an expected call of Mux.
func (*MockHostMockRecorder) Network ¶
func (mr *MockHostMockRecorder) Network() *gomock.Call
Network indicates an expected call of Network.
func (*MockHostMockRecorder) NewStream ¶
func (mr *MockHostMockRecorder) NewStream(arg0, arg1 any, arg2 ...any) *gomock.Call
NewStream indicates an expected call of NewStream.
func (*MockHostMockRecorder) Peerstore ¶
func (mr *MockHostMockRecorder) Peerstore() *gomock.Call
Peerstore indicates an expected call of Peerstore.
func (*MockHostMockRecorder) RemoveStreamHandler ¶
func (mr *MockHostMockRecorder) RemoveStreamHandler(arg0 any) *gomock.Call
RemoveStreamHandler indicates an expected call of RemoveStreamHandler.
func (*MockHostMockRecorder) SetStreamHandler ¶
func (mr *MockHostMockRecorder) SetStreamHandler(arg0, arg1 any) *gomock.Call
SetStreamHandler indicates an expected call of SetStreamHandler.
func (*MockHostMockRecorder) SetStreamHandlerMatch ¶
func (mr *MockHostMockRecorder) SetStreamHandlerMatch(arg0, arg1, arg2 any) *gomock.Call
SetStreamHandlerMatch indicates an expected call of SetStreamHandlerMatch.
type MockOutput ¶
type MockOutput struct {
// contains filtered or unexported fields
}
MockOutput is a mock of Output interface.
func NewMockOutput ¶
func NewMockOutput(ctrl *gomock.Controller) *MockOutput
NewMockOutput creates a new mock instance.
func (*MockOutput) EXPECT ¶
func (m *MockOutput) EXPECT() *MockOutputMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockOutputMockRecorder ¶
type MockOutputMockRecorder struct {
// contains filtered or unexported fields
}
MockOutputMockRecorder is the mock recorder for MockOutput.