Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type HostNetworkCall
- type HostNewStreamCall
- func (c *HostNewStreamCall) Do(f func(context.Context, peer.ID, ...protocol.ID) (network.Stream, error)) *HostNewStreamCall
- func (c *HostNewStreamCall) DoAndReturn(f func(context.Context, peer.ID, ...protocol.ID) (network.Stream, error)) *HostNewStreamCall
- func (c *HostNewStreamCall) Return(arg0 network.Stream, arg1 error) *HostNewStreamCall
- type HostSetStreamHandlerCall
- type MockHost
- type MockHostMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostNetworkCall ¶ added in v1.1.5
HostNetworkCall wrap *gomock.Call
func (*HostNetworkCall) Do ¶ added in v1.1.5
func (c *HostNetworkCall) Do(f func() network.Network) *HostNetworkCall
Do rewrite *gomock.Call.Do
func (*HostNetworkCall) DoAndReturn ¶ added in v1.1.5
func (c *HostNetworkCall) DoAndReturn(f func() network.Network) *HostNetworkCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*HostNetworkCall) Return ¶ added in v1.1.5
func (c *HostNetworkCall) Return(arg0 network.Network) *HostNetworkCall
Return rewrite *gomock.Call.Return
type HostNewStreamCall ¶ added in v1.1.5
HostNewStreamCall wrap *gomock.Call
func (*HostNewStreamCall) Do ¶ added in v1.1.5
func (c *HostNewStreamCall) Do(f func(context.Context, peer.ID, ...protocol.ID) (network.Stream, error)) *HostNewStreamCall
Do rewrite *gomock.Call.Do
func (*HostNewStreamCall) DoAndReturn ¶ added in v1.1.5
func (c *HostNewStreamCall) DoAndReturn(f func(context.Context, peer.ID, ...protocol.ID) (network.Stream, error)) *HostNewStreamCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*HostNewStreamCall) Return ¶ added in v1.1.5
func (c *HostNewStreamCall) Return(arg0 network.Stream, arg1 error) *HostNewStreamCall
Return rewrite *gomock.Call.Return
type HostSetStreamHandlerCall ¶ added in v1.1.5
HostSetStreamHandlerCall wrap *gomock.Call
func (*HostSetStreamHandlerCall) Do ¶ added in v1.1.5
func (c *HostSetStreamHandlerCall) Do(f func(protocol.ID, network.StreamHandler)) *HostSetStreamHandlerCall
Do rewrite *gomock.Call.Do
func (*HostSetStreamHandlerCall) DoAndReturn ¶ added in v1.1.5
func (c *HostSetStreamHandlerCall) DoAndReturn(f func(protocol.ID, network.StreamHandler)) *HostSetStreamHandlerCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*HostSetStreamHandlerCall) Return ¶ added in v1.1.5
func (c *HostSetStreamHandlerCall) Return() *HostSetStreamHandlerCall
Return rewrite *gomock.Call.Return
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) 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 MockHostMockRecorder ¶
type MockHostMockRecorder struct {
// contains filtered or unexported fields
}
MockHostMockRecorder is the mock recorder for MockHost.
func (*MockHostMockRecorder) Network ¶
func (mr *MockHostMockRecorder) Network() *HostNetworkCall
Network indicates an expected call of Network.
func (*MockHostMockRecorder) NewStream ¶
func (mr *MockHostMockRecorder) NewStream(arg0, arg1 interface{}, arg2 ...interface{}) *HostNewStreamCall
NewStream indicates an expected call of NewStream.
func (*MockHostMockRecorder) SetStreamHandler ¶
func (mr *MockHostMockRecorder) SetStreamHandler(arg0, arg1 interface{}) *HostSetStreamHandlerCall
SetStreamHandler indicates an expected call of SetStreamHandler.