mocks

package
v0.35.9 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

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 mockConstructorTestingTNewConsSyncReactor) *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

Jump to

Keyboard shortcuts

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