Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockNetwork
- func (m *MockNetwork) EXPECT() *MockNetworkMockRecorder
- func (m *MockNetwork) RegisterDirectProtocolWithChannel(protocol string, ingressChannel chan service.DirectMessage) chan service.DirectMessage
- func (m *MockNetwork) SendWrappedMessage(ctx context.Context, nodeID p2pcrypto.PublicKey, protocol string, ...) error
- func (m *MockNetwork) SubscribePeerEvents() (chan p2pcrypto.PublicKey, chan p2pcrypto.PublicKey)
- type MockNetworkMockRecorder
- func (mr *MockNetworkMockRecorder) RegisterDirectProtocolWithChannel(protocol, ingressChannel interface{}) *gomock.Call
- func (mr *MockNetworkMockRecorder) SendWrappedMessage(ctx, nodeID, protocol, payload interface{}) *gomock.Call
- func (mr *MockNetworkMockRecorder) SubscribePeerEvents() *gomock.Call
- type MockTime
- type MockTimeMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockNetwork ¶
type MockNetwork struct {
// contains filtered or unexported fields
}
MockNetwork is a mock of Network interface.
func NewMockNetwork ¶
func NewMockNetwork(ctrl *gomock.Controller) *MockNetwork
NewMockNetwork creates a new mock instance.
func (*MockNetwork) EXPECT ¶
func (m *MockNetwork) EXPECT() *MockNetworkMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNetwork) RegisterDirectProtocolWithChannel ¶
func (m *MockNetwork) RegisterDirectProtocolWithChannel(protocol string, ingressChannel chan service.DirectMessage) chan service.DirectMessage
RegisterDirectProtocolWithChannel mocks base method.
func (*MockNetwork) SendWrappedMessage ¶
func (m *MockNetwork) SendWrappedMessage(ctx context.Context, nodeID p2pcrypto.PublicKey, protocol string, payload *service.DataMsgWrapper) error
SendWrappedMessage mocks base method.
func (*MockNetwork) SubscribePeerEvents ¶
func (m *MockNetwork) SubscribePeerEvents() (chan p2pcrypto.PublicKey, chan p2pcrypto.PublicKey)
SubscribePeerEvents mocks base method.
type MockNetworkMockRecorder ¶
type MockNetworkMockRecorder struct {
// contains filtered or unexported fields
}
MockNetworkMockRecorder is the mock recorder for MockNetwork.
func (*MockNetworkMockRecorder) RegisterDirectProtocolWithChannel ¶
func (mr *MockNetworkMockRecorder) RegisterDirectProtocolWithChannel(protocol, ingressChannel interface{}) *gomock.Call
RegisterDirectProtocolWithChannel indicates an expected call of RegisterDirectProtocolWithChannel.
func (*MockNetworkMockRecorder) SendWrappedMessage ¶
func (mr *MockNetworkMockRecorder) SendWrappedMessage(ctx, nodeID, protocol, payload interface{}) *gomock.Call
SendWrappedMessage indicates an expected call of SendWrappedMessage.
func (*MockNetworkMockRecorder) SubscribePeerEvents ¶
func (mr *MockNetworkMockRecorder) SubscribePeerEvents() *gomock.Call
SubscribePeerEvents indicates an expected call of SubscribePeerEvents.
type MockTime ¶
type MockTime struct {
// contains filtered or unexported fields
}
MockTime is a mock of Time interface.
func NewMockTime ¶
func NewMockTime(ctrl *gomock.Controller) *MockTime
NewMockTime creates a new mock instance.
func (*MockTime) EXPECT ¶
func (m *MockTime) EXPECT() *MockTimeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockTimeMockRecorder ¶
type MockTimeMockRecorder struct {
// contains filtered or unexported fields
}
MockTimeMockRecorder is the mock recorder for MockTime.
func (*MockTimeMockRecorder) Now ¶
func (mr *MockTimeMockRecorder) Now() *gomock.Call
Now indicates an expected call of Now.