Documentation
¶
Overview ¶
Package mock_block_sync is a generated GoMock package.
Index ¶
- type MockSync
- func (m *MockSync) Commit() chan []*types.Block
- func (m *MockSync) EXPECT() *MockSyncMockRecorder
- func (m *MockSync) Start() error
- func (m *MockSync) StartSync(peers []string, curBlockHash string, quorum, curHeight, targetHeight uint64, ...) error
- func (m *MockSync) Stop()
- func (m *MockSync) StopSync() error
- type MockSyncMockRecorder
- func (mr *MockSyncMockRecorder) Commit() *gomock.Call
- func (mr *MockSyncMockRecorder) Start() *gomock.Call
- func (mr *MockSyncMockRecorder) StartSync(peers, curBlockHash, quorum, curHeight, targetHeight, quorumCheckpoint any, ...) *gomock.Call
- func (mr *MockSyncMockRecorder) Stop() *gomock.Call
- func (mr *MockSyncMockRecorder) StopSync() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSync ¶
type MockSync struct {
// contains filtered or unexported fields
}
MockSync is a mock of Sync interface.
func NewMockSync ¶
func NewMockSync(ctrl *gomock.Controller) *MockSync
NewMockSync creates a new mock instance.
func (*MockSync) EXPECT ¶
func (m *MockSync) EXPECT() *MockSyncMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockSyncMockRecorder ¶
type MockSyncMockRecorder struct {
// contains filtered or unexported fields
}
MockSyncMockRecorder is the mock recorder for MockSync.
func (*MockSyncMockRecorder) Commit ¶
func (mr *MockSyncMockRecorder) Commit() *gomock.Call
Commit indicates an expected call of Commit.
func (*MockSyncMockRecorder) Start ¶
func (mr *MockSyncMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockSyncMockRecorder) StartSync ¶
func (mr *MockSyncMockRecorder) StartSync(peers, curBlockHash, quorum, curHeight, targetHeight, quorumCheckpoint any, epc ...any) *gomock.Call
StartSync indicates an expected call of StartSync.
func (*MockSyncMockRecorder) Stop ¶
func (mr *MockSyncMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
func (*MockSyncMockRecorder) StopSync ¶
func (mr *MockSyncMockRecorder) StopSync() *gomock.Call
StopSync indicates an expected call of StopSync.
Click to show internal directories.
Click to hide internal directories.