mock_blocksync

package
v2.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mock_blocksync is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBlockSync

type MockBlockSync struct {
	// contains filtered or unexported fields
}

MockBlockSync is a mock of BlockSync interface.

func NewMockBlockSync

func NewMockBlockSync(ctrl *gomock.Controller) *MockBlockSync

NewMockBlockSync creates a new mock instance.

func (*MockBlockSync) BuildReport

func (m *MockBlockSync) BuildReport() string

BuildReport mocks base method.

func (*MockBlockSync) EXPECT

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

func (*MockBlockSync) ProcessBlock

func (m *MockBlockSync) ProcessBlock(arg0 context.Context, arg1 string, arg2 *block.Block) error

ProcessBlock mocks base method.

func (*MockBlockSync) ProcessSyncRequest

func (m *MockBlockSync) ProcessSyncRequest(arg0 context.Context, arg1 peer.AddrInfo, arg2, arg3 uint64) error

ProcessSyncRequest mocks base method.

func (*MockBlockSync) Start

func (m *MockBlockSync) Start(arg0 context.Context) error

Start mocks base method.

func (*MockBlockSync) Stop

func (m *MockBlockSync) Stop(arg0 context.Context) error

Stop mocks base method.

func (*MockBlockSync) SyncStatus

func (m *MockBlockSync) SyncStatus() (uint64, uint64, uint64, string)

SyncStatus mocks base method.

func (*MockBlockSync) TargetHeight

func (m *MockBlockSync) TargetHeight() uint64

TargetHeight mocks base method.

type MockBlockSyncMockRecorder

type MockBlockSyncMockRecorder struct {
	// contains filtered or unexported fields
}

MockBlockSyncMockRecorder is the mock recorder for MockBlockSync.

func (*MockBlockSyncMockRecorder) BuildReport

func (mr *MockBlockSyncMockRecorder) BuildReport() *gomock.Call

BuildReport indicates an expected call of BuildReport.

func (*MockBlockSyncMockRecorder) ProcessBlock

func (mr *MockBlockSyncMockRecorder) ProcessBlock(arg0, arg1, arg2 any) *gomock.Call

ProcessBlock indicates an expected call of ProcessBlock.

func (*MockBlockSyncMockRecorder) ProcessSyncRequest

func (mr *MockBlockSyncMockRecorder) ProcessSyncRequest(arg0, arg1, arg2, arg3 any) *gomock.Call

ProcessSyncRequest indicates an expected call of ProcessSyncRequest.

func (*MockBlockSyncMockRecorder) Start

func (mr *MockBlockSyncMockRecorder) Start(arg0 any) *gomock.Call

Start indicates an expected call of Start.

func (*MockBlockSyncMockRecorder) Stop

func (mr *MockBlockSyncMockRecorder) Stop(arg0 any) *gomock.Call

Stop indicates an expected call of Stop.

func (*MockBlockSyncMockRecorder) SyncStatus

func (mr *MockBlockSyncMockRecorder) SyncStatus() *gomock.Call

SyncStatus indicates an expected call of SyncStatus.

func (*MockBlockSyncMockRecorder) TargetHeight

func (mr *MockBlockSyncMockRecorder) TargetHeight() *gomock.Call

TargetHeight indicates an expected call of TargetHeight.

Jump to

Keyboard shortcuts

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