mocks

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: Apache-2.0 Imports: 5 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 Gossiper

type Gossiper struct {
	mock.Mock
}

Gossiper is an autogenerated mock type for the Gossiper type

func NewGossiper

func NewGossiper(t interface {
	mock.TestingT
	Cleanup(func())
}) *Gossiper

NewGossiper creates a new instance of Gossiper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Gossiper) GossipBlockPartsForCatchup

func (_m *Gossiper) GossipBlockPartsForCatchup(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)

GossipBlockPartsForCatchup provides a mock function with given fields: ctx, rs, prs

func (*Gossiper) GossipCommit

func (_m *Gossiper) GossipCommit(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)

GossipCommit provides a mock function with given fields: ctx, rs, prs

func (*Gossiper) GossipProposal

func (_m *Gossiper) GossipProposal(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)

GossipProposal provides a mock function with given fields: ctx, rs, prs

func (*Gossiper) GossipProposalBlockParts

func (_m *Gossiper) GossipProposalBlockParts(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)

GossipProposalBlockParts provides a mock function with given fields: ctx, rs, prs

func (*Gossiper) GossipVote

func (_m *Gossiper) GossipVote(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)

GossipVote provides a mock function with given fields: ctx, rs, prs

func (*Gossiper) GossipVoteSetMaj23

func (_m *Gossiper) GossipVoteSetMaj23(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)

GossipVoteSetMaj23 provides a mock function with given fields: ctx, rs, prs

Jump to

Keyboard shortcuts

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