mocks

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 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 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) EXPECT added in v1.4.0

func (_m *Gossiper) EXPECT() *Gossiper_Expecter

func (*Gossiper) GossipBlockPartsForCatchup

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

GossipBlockPartsForCatchup provides a mock function for the type Gossiper

func (*Gossiper) GossipCommit

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

GossipCommit provides a mock function for the type Gossiper

func (*Gossiper) GossipProposal

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

GossipProposal provides a mock function for the type Gossiper

func (*Gossiper) GossipProposalBlockParts

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

GossipProposalBlockParts provides a mock function for the type Gossiper

func (*Gossiper) GossipVote

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

GossipVote provides a mock function for the type Gossiper

func (*Gossiper) GossipVoteSetMaj23

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

GossipVoteSetMaj23 provides a mock function for the type Gossiper

type Gossiper_Expecter added in v1.4.0

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

func (*Gossiper_Expecter) GossipBlockPartsForCatchup added in v1.4.0

func (_e *Gossiper_Expecter) GossipBlockPartsForCatchup(ctx interface{}, rs interface{}, prs interface{}) *Gossiper_GossipBlockPartsForCatchup_Call

GossipBlockPartsForCatchup is a helper method to define mock.On call

  • ctx context.Context
  • rs types.RoundState
  • prs *types.PeerRoundState

func (*Gossiper_Expecter) GossipCommit added in v1.4.0

func (_e *Gossiper_Expecter) GossipCommit(ctx interface{}, rs interface{}, prs interface{}) *Gossiper_GossipCommit_Call

GossipCommit is a helper method to define mock.On call

  • ctx context.Context
  • rs types.RoundState
  • prs *types.PeerRoundState

func (*Gossiper_Expecter) GossipProposal added in v1.4.0

func (_e *Gossiper_Expecter) GossipProposal(ctx interface{}, rs interface{}, prs interface{}) *Gossiper_GossipProposal_Call

GossipProposal is a helper method to define mock.On call

  • ctx context.Context
  • rs types.RoundState
  • prs *types.PeerRoundState

func (*Gossiper_Expecter) GossipProposalBlockParts added in v1.4.0

func (_e *Gossiper_Expecter) GossipProposalBlockParts(ctx interface{}, rs interface{}, prs interface{}) *Gossiper_GossipProposalBlockParts_Call

GossipProposalBlockParts is a helper method to define mock.On call

  • ctx context.Context
  • rs types.RoundState
  • prs *types.PeerRoundState

func (*Gossiper_Expecter) GossipVote added in v1.4.0

func (_e *Gossiper_Expecter) GossipVote(ctx interface{}, rs interface{}, prs interface{}) *Gossiper_GossipVote_Call

GossipVote is a helper method to define mock.On call

  • ctx context.Context
  • rs types.RoundState
  • prs *types.PeerRoundState

func (*Gossiper_Expecter) GossipVoteSetMaj23 added in v1.4.0

func (_e *Gossiper_Expecter) GossipVoteSetMaj23(ctx interface{}, rs interface{}, prs interface{}) *Gossiper_GossipVoteSetMaj23_Call

GossipVoteSetMaj23 is a helper method to define mock.On call

  • ctx context.Context
  • rs types.RoundState
  • prs *types.PeerRoundState

type Gossiper_GossipBlockPartsForCatchup_Call added in v1.4.0

type Gossiper_GossipBlockPartsForCatchup_Call struct {
	*mock.Call
}

Gossiper_GossipBlockPartsForCatchup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GossipBlockPartsForCatchup'

func (*Gossiper_GossipBlockPartsForCatchup_Call) Return added in v1.4.0

func (*Gossiper_GossipBlockPartsForCatchup_Call) Run added in v1.4.0

func (*Gossiper_GossipBlockPartsForCatchup_Call) RunAndReturn added in v1.4.0

type Gossiper_GossipCommit_Call added in v1.4.0

type Gossiper_GossipCommit_Call struct {
	*mock.Call
}

Gossiper_GossipCommit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GossipCommit'

func (*Gossiper_GossipCommit_Call) Return added in v1.4.0

func (*Gossiper_GossipCommit_Call) Run added in v1.4.0

func (*Gossiper_GossipCommit_Call) RunAndReturn added in v1.4.0

type Gossiper_GossipProposalBlockParts_Call added in v1.4.0

type Gossiper_GossipProposalBlockParts_Call struct {
	*mock.Call
}

Gossiper_GossipProposalBlockParts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GossipProposalBlockParts'

func (*Gossiper_GossipProposalBlockParts_Call) Return added in v1.4.0

func (*Gossiper_GossipProposalBlockParts_Call) Run added in v1.4.0

func (*Gossiper_GossipProposalBlockParts_Call) RunAndReturn added in v1.4.0

type Gossiper_GossipProposal_Call added in v1.4.0

type Gossiper_GossipProposal_Call struct {
	*mock.Call
}

Gossiper_GossipProposal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GossipProposal'

func (*Gossiper_GossipProposal_Call) Return added in v1.4.0

func (*Gossiper_GossipProposal_Call) Run added in v1.4.0

func (*Gossiper_GossipProposal_Call) RunAndReturn added in v1.4.0

type Gossiper_GossipVoteSetMaj23_Call added in v1.4.0

type Gossiper_GossipVoteSetMaj23_Call struct {
	*mock.Call
}

Gossiper_GossipVoteSetMaj23_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GossipVoteSetMaj23'

func (*Gossiper_GossipVoteSetMaj23_Call) Return added in v1.4.0

func (*Gossiper_GossipVoteSetMaj23_Call) Run added in v1.4.0

func (*Gossiper_GossipVoteSetMaj23_Call) RunAndReturn added in v1.4.0

type Gossiper_GossipVote_Call added in v1.4.0

type Gossiper_GossipVote_Call struct {
	*mock.Call
}

Gossiper_GossipVote_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GossipVote'

func (*Gossiper_GossipVote_Call) Return added in v1.4.0

func (*Gossiper_GossipVote_Call) Run added in v1.4.0

func (*Gossiper_GossipVote_Call) RunAndReturn added in v1.4.0

Jump to

Keyboard shortcuts

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