mock_block_sync

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock_block_sync is a generated GoMock package.

Index

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) Commit

func (m *MockSync) Commit() chan []*types.Block

Commit mocks base method.

func (*MockSync) EXPECT

func (m *MockSync) EXPECT() *MockSyncMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSync) Start

func (m *MockSync) Start() error

Start mocks base method.

func (*MockSync) StartSync

func (m *MockSync) StartSync(peers []string, curBlockHash string, quorum, curHeight, targetHeight uint64, quorumCheckpoint *consensus.SignedCheckpoint, epc ...*consensus.EpochChange) error

StartSync mocks base method.

func (*MockSync) Stop

func (m *MockSync) Stop()

Stop mocks base method.

func (*MockSync) StopSync

func (m *MockSync) StopSync() error

StopSync mocks base method.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL