mocks

package
v0.37.0-dev Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: Apache-2.0 Imports: 3 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockSyncReactor

type BlockSyncReactor struct {
	mock.Mock
}

BlockSyncReactor is an autogenerated mock type for the BlockSyncReactor type

func (*BlockSyncReactor) GetMaxPeerBlockHeight

func (_m *BlockSyncReactor) GetMaxPeerBlockHeight() int64

GetMaxPeerBlockHeight provides a mock function with given fields:

func (*BlockSyncReactor) GetRemainingSyncTime

func (_m *BlockSyncReactor) GetRemainingSyncTime() time.Duration

GetRemainingSyncTime provides a mock function with given fields:

func (*BlockSyncReactor) GetTotalSyncedTime

func (_m *BlockSyncReactor) GetTotalSyncedTime() time.Duration

GetTotalSyncedTime provides a mock function with given fields:

func (*BlockSyncReactor) SwitchToBlockSync

func (_m *BlockSyncReactor) SwitchToBlockSync(_a0 state.State) error

SwitchToBlockSync provides a mock function with given fields: _a0

type ConsSyncReactor

type ConsSyncReactor struct {
	mock.Mock
}

ConsSyncReactor is an autogenerated mock type for the ConsSyncReactor type

func NewConsSyncReactor added in v0.35.8

func NewConsSyncReactor(t NewConsSyncReactorT) *ConsSyncReactor

NewConsSyncReactor creates a new instance of ConsSyncReactor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ConsSyncReactor) SetBlockSyncingMetrics

func (_m *ConsSyncReactor) SetBlockSyncingMetrics(_a0 float64)

SetBlockSyncingMetrics provides a mock function with given fields: _a0

func (*ConsSyncReactor) SetStateSyncingMetrics

func (_m *ConsSyncReactor) SetStateSyncingMetrics(_a0 float64)

SetStateSyncingMetrics provides a mock function with given fields: _a0

func (*ConsSyncReactor) SwitchToConsensus

func (_m *ConsSyncReactor) SwitchToConsensus(_a0 state.State, _a1 bool)

SwitchToConsensus provides a mock function with given fields: _a0, _a1

type NewConsSyncReactorT

type NewConsSyncReactorT interface {
	mock.TestingT
	Cleanup(func())
}

Jump to

Keyboard shortcuts

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