Documentation
¶
Index ¶
- type Gossiper
- func (_m *Gossiper) EXPECT() *Gossiper_Expecter
- func (_mock *Gossiper) GossipBlockPartsForCatchup(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)
- func (_mock *Gossiper) GossipCommit(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)
- func (_mock *Gossiper) GossipProposal(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)
- func (_mock *Gossiper) GossipProposalBlockParts(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)
- func (_mock *Gossiper) GossipVote(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)
- func (_mock *Gossiper) GossipVoteSetMaj23(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)
- type Gossiper_Expecter
- func (_e *Gossiper_Expecter) GossipBlockPartsForCatchup(ctx interface{}, rs interface{}, prs interface{}) *Gossiper_GossipBlockPartsForCatchup_Call
- func (_e *Gossiper_Expecter) GossipCommit(ctx interface{}, rs interface{}, prs interface{}) *Gossiper_GossipCommit_Call
- func (_e *Gossiper_Expecter) GossipProposal(ctx interface{}, rs interface{}, prs interface{}) *Gossiper_GossipProposal_Call
- func (_e *Gossiper_Expecter) GossipProposalBlockParts(ctx interface{}, rs interface{}, prs interface{}) *Gossiper_GossipProposalBlockParts_Call
- func (_e *Gossiper_Expecter) GossipVote(ctx interface{}, rs interface{}, prs interface{}) *Gossiper_GossipVote_Call
- func (_e *Gossiper_Expecter) GossipVoteSetMaj23(ctx interface{}, rs interface{}, prs interface{}) *Gossiper_GossipVoteSetMaj23_Call
- type Gossiper_GossipBlockPartsForCatchup_Call
- func (_c *Gossiper_GossipBlockPartsForCatchup_Call) Return() *Gossiper_GossipBlockPartsForCatchup_Call
- func (_c *Gossiper_GossipBlockPartsForCatchup_Call) Run(run func(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)) *Gossiper_GossipBlockPartsForCatchup_Call
- func (_c *Gossiper_GossipBlockPartsForCatchup_Call) RunAndReturn(run func(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)) *Gossiper_GossipBlockPartsForCatchup_Call
- type Gossiper_GossipCommit_Call
- func (_c *Gossiper_GossipCommit_Call) Return() *Gossiper_GossipCommit_Call
- func (_c *Gossiper_GossipCommit_Call) Run(run func(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)) *Gossiper_GossipCommit_Call
- func (_c *Gossiper_GossipCommit_Call) RunAndReturn(run func(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)) *Gossiper_GossipCommit_Call
- type Gossiper_GossipProposalBlockParts_Call
- func (_c *Gossiper_GossipProposalBlockParts_Call) Return() *Gossiper_GossipProposalBlockParts_Call
- func (_c *Gossiper_GossipProposalBlockParts_Call) Run(run func(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)) *Gossiper_GossipProposalBlockParts_Call
- func (_c *Gossiper_GossipProposalBlockParts_Call) RunAndReturn(run func(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)) *Gossiper_GossipProposalBlockParts_Call
- type Gossiper_GossipProposal_Call
- func (_c *Gossiper_GossipProposal_Call) Return() *Gossiper_GossipProposal_Call
- func (_c *Gossiper_GossipProposal_Call) Run(run func(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)) *Gossiper_GossipProposal_Call
- func (_c *Gossiper_GossipProposal_Call) RunAndReturn(run func(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)) *Gossiper_GossipProposal_Call
- type Gossiper_GossipVoteSetMaj23_Call
- func (_c *Gossiper_GossipVoteSetMaj23_Call) Return() *Gossiper_GossipVoteSetMaj23_Call
- func (_c *Gossiper_GossipVoteSetMaj23_Call) Run(run func(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)) *Gossiper_GossipVoteSetMaj23_Call
- func (_c *Gossiper_GossipVoteSetMaj23_Call) RunAndReturn(run func(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)) *Gossiper_GossipVoteSetMaj23_Call
- type Gossiper_GossipVote_Call
- func (_c *Gossiper_GossipVote_Call) Return() *Gossiper_GossipVote_Call
- func (_c *Gossiper_GossipVote_Call) Run(run func(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)) *Gossiper_GossipVote_Call
- func (_c *Gossiper_GossipVote_Call) RunAndReturn(run func(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)) *Gossiper_GossipVote_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gossiper ¶
Gossiper is an autogenerated mock type for the Gossiper type
func NewGossiper ¶
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
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 (_c *Gossiper_GossipBlockPartsForCatchup_Call) Return() *Gossiper_GossipBlockPartsForCatchup_Call
func (*Gossiper_GossipBlockPartsForCatchup_Call) Run ¶ added in v1.4.0
func (_c *Gossiper_GossipBlockPartsForCatchup_Call) Run(run func(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)) *Gossiper_GossipBlockPartsForCatchup_Call
func (*Gossiper_GossipBlockPartsForCatchup_Call) RunAndReturn ¶ added in v1.4.0
func (_c *Gossiper_GossipBlockPartsForCatchup_Call) RunAndReturn(run func(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)) *Gossiper_GossipBlockPartsForCatchup_Call
type Gossiper_GossipCommit_Call ¶ added in v1.4.0
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 (_c *Gossiper_GossipCommit_Call) Return() *Gossiper_GossipCommit_Call
func (*Gossiper_GossipCommit_Call) Run ¶ added in v1.4.0
func (_c *Gossiper_GossipCommit_Call) Run(run func(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)) *Gossiper_GossipCommit_Call
func (*Gossiper_GossipCommit_Call) RunAndReturn ¶ added in v1.4.0
func (_c *Gossiper_GossipCommit_Call) RunAndReturn(run func(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)) *Gossiper_GossipCommit_Call
type Gossiper_GossipProposalBlockParts_Call ¶ added in v1.4.0
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 (_c *Gossiper_GossipProposalBlockParts_Call) Return() *Gossiper_GossipProposalBlockParts_Call
func (*Gossiper_GossipProposalBlockParts_Call) Run ¶ added in v1.4.0
func (_c *Gossiper_GossipProposalBlockParts_Call) Run(run func(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)) *Gossiper_GossipProposalBlockParts_Call
func (*Gossiper_GossipProposalBlockParts_Call) RunAndReturn ¶ added in v1.4.0
func (_c *Gossiper_GossipProposalBlockParts_Call) RunAndReturn(run func(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)) *Gossiper_GossipProposalBlockParts_Call
type Gossiper_GossipProposal_Call ¶ added in v1.4.0
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 (_c *Gossiper_GossipProposal_Call) Return() *Gossiper_GossipProposal_Call
func (*Gossiper_GossipProposal_Call) Run ¶ added in v1.4.0
func (_c *Gossiper_GossipProposal_Call) Run(run func(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)) *Gossiper_GossipProposal_Call
func (*Gossiper_GossipProposal_Call) RunAndReturn ¶ added in v1.4.0
func (_c *Gossiper_GossipProposal_Call) RunAndReturn(run func(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)) *Gossiper_GossipProposal_Call
type Gossiper_GossipVoteSetMaj23_Call ¶ added in v1.4.0
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 (_c *Gossiper_GossipVoteSetMaj23_Call) Return() *Gossiper_GossipVoteSetMaj23_Call
func (*Gossiper_GossipVoteSetMaj23_Call) Run ¶ added in v1.4.0
func (_c *Gossiper_GossipVoteSetMaj23_Call) Run(run func(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)) *Gossiper_GossipVoteSetMaj23_Call
func (*Gossiper_GossipVoteSetMaj23_Call) RunAndReturn ¶ added in v1.4.0
func (_c *Gossiper_GossipVoteSetMaj23_Call) RunAndReturn(run func(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)) *Gossiper_GossipVoteSetMaj23_Call
type Gossiper_GossipVote_Call ¶ added in v1.4.0
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 (_c *Gossiper_GossipVote_Call) Return() *Gossiper_GossipVote_Call
func (*Gossiper_GossipVote_Call) Run ¶ added in v1.4.0
func (_c *Gossiper_GossipVote_Call) Run(run func(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)) *Gossiper_GossipVote_Call
func (*Gossiper_GossipVote_Call) RunAndReturn ¶ added in v1.4.0
func (_c *Gossiper_GossipVote_Call) RunAndReturn(run func(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)) *Gossiper_GossipVote_Call