Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
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) GetHistory ¶
func (m *MockNetwork) GetHistory(id types.MessageID, from, to qbft.Height, targets ...string) ([]protocolp2p.SyncResult, qbft.Height, error)
GetHistory mocks base method.
func (*MockNetwork) LastDecided ¶
func (m *MockNetwork) LastDecided(id types.MessageID) ([]protocolp2p.SyncResult, error)
LastDecided mocks base method.
type MockNetworkMockRecorder ¶
type MockNetworkMockRecorder struct {
// contains filtered or unexported fields
}
MockNetworkMockRecorder is the mock recorder for MockNetwork.
func (*MockNetworkMockRecorder) GetHistory ¶
func (mr *MockNetworkMockRecorder) GetHistory(id, from, to interface{}, targets ...interface{}) *gomock.Call
GetHistory indicates an expected call of GetHistory.
func (*MockNetworkMockRecorder) LastDecided ¶
func (mr *MockNetworkMockRecorder) LastDecided(id interface{}) *gomock.Call
LastDecided indicates an expected call of LastDecided.
type MockSyncer ¶
type MockSyncer struct {
// contains filtered or unexported fields
}
MockSyncer is a mock of Syncer interface.
func NewMockSyncer ¶
func NewMockSyncer(ctrl *gomock.Controller) *MockSyncer
NewMockSyncer creates a new mock instance.
func (*MockSyncer) EXPECT ¶
func (m *MockSyncer) EXPECT() *MockSyncerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSyncer) SyncDecidedByRange ¶
func (m *MockSyncer) SyncDecidedByRange(ctx context.Context, id types.MessageID, from, to qbft.Height, handler syncing.MessageHandler) error
SyncDecidedByRange mocks base method.
func (*MockSyncer) SyncHighestDecided ¶
func (m *MockSyncer) SyncHighestDecided(ctx context.Context, id types.MessageID, handler syncing.MessageHandler) error
SyncHighestDecided mocks base method.
type MockSyncerMockRecorder ¶
type MockSyncerMockRecorder struct {
// contains filtered or unexported fields
}
MockSyncerMockRecorder is the mock recorder for MockSyncer.
func (*MockSyncerMockRecorder) SyncDecidedByRange ¶
func (mr *MockSyncerMockRecorder) SyncDecidedByRange(ctx, id, from, to, handler interface{}) *gomock.Call
SyncDecidedByRange indicates an expected call of SyncDecidedByRange.
func (*MockSyncerMockRecorder) SyncHighestDecided ¶
func (mr *MockSyncerMockRecorder) SyncHighestDecided(ctx, id, handler interface{}) *gomock.Call
SyncHighestDecided indicates an expected call of SyncHighestDecided.