Documentation
¶
Index ¶
- type ProposerSelector
- func (_mock *ProposerSelector) Copy() selectproposer.ProposerSelector
- func (_m *ProposerSelector) EXPECT() *ProposerSelector_Expecter
- func (_mock *ProposerSelector) GetProposer(height int64, round int32) (*types.Validator, error)
- func (_mock *ProposerSelector) MustGetProposer(height int64, round int32) *types.Validator
- func (_mock *ProposerSelector) UpdateHeightRound(height int64, round int32) error
- func (_mock *ProposerSelector) ValidatorSet() *types.ValidatorSet
- type ProposerSelector_Copy_Call
- func (_c *ProposerSelector_Copy_Call) Return(proposerSelector selectproposer.ProposerSelector) *ProposerSelector_Copy_Call
- func (_c *ProposerSelector_Copy_Call) Run(run func()) *ProposerSelector_Copy_Call
- func (_c *ProposerSelector_Copy_Call) RunAndReturn(run func() selectproposer.ProposerSelector) *ProposerSelector_Copy_Call
- type ProposerSelector_Expecter
- func (_e *ProposerSelector_Expecter) Copy() *ProposerSelector_Copy_Call
- func (_e *ProposerSelector_Expecter) GetProposer(height interface{}, round interface{}) *ProposerSelector_GetProposer_Call
- func (_e *ProposerSelector_Expecter) MustGetProposer(height interface{}, round interface{}) *ProposerSelector_MustGetProposer_Call
- func (_e *ProposerSelector_Expecter) UpdateHeightRound(height interface{}, round interface{}) *ProposerSelector_UpdateHeightRound_Call
- func (_e *ProposerSelector_Expecter) ValidatorSet() *ProposerSelector_ValidatorSet_Call
- type ProposerSelector_GetProposer_Call
- func (_c *ProposerSelector_GetProposer_Call) Return(validator *types.Validator, err error) *ProposerSelector_GetProposer_Call
- func (_c *ProposerSelector_GetProposer_Call) Run(run func(height int64, round int32)) *ProposerSelector_GetProposer_Call
- func (_c *ProposerSelector_GetProposer_Call) RunAndReturn(run func(height int64, round int32) (*types.Validator, error)) *ProposerSelector_GetProposer_Call
- type ProposerSelector_MustGetProposer_Call
- func (_c *ProposerSelector_MustGetProposer_Call) Return(validator *types.Validator) *ProposerSelector_MustGetProposer_Call
- func (_c *ProposerSelector_MustGetProposer_Call) Run(run func(height int64, round int32)) *ProposerSelector_MustGetProposer_Call
- func (_c *ProposerSelector_MustGetProposer_Call) RunAndReturn(run func(height int64, round int32) *types.Validator) *ProposerSelector_MustGetProposer_Call
- type ProposerSelector_UpdateHeightRound_Call
- func (_c *ProposerSelector_UpdateHeightRound_Call) Return(err error) *ProposerSelector_UpdateHeightRound_Call
- func (_c *ProposerSelector_UpdateHeightRound_Call) Run(run func(height int64, round int32)) *ProposerSelector_UpdateHeightRound_Call
- func (_c *ProposerSelector_UpdateHeightRound_Call) RunAndReturn(run func(height int64, round int32) error) *ProposerSelector_UpdateHeightRound_Call
- type ProposerSelector_ValidatorSet_Call
- func (_c *ProposerSelector_ValidatorSet_Call) Return(validatorSet *types.ValidatorSet) *ProposerSelector_ValidatorSet_Call
- func (_c *ProposerSelector_ValidatorSet_Call) Run(run func()) *ProposerSelector_ValidatorSet_Call
- func (_c *ProposerSelector_ValidatorSet_Call) RunAndReturn(run func() *types.ValidatorSet) *ProposerSelector_ValidatorSet_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProposerSelector ¶
ProposerSelector is an autogenerated mock type for the ProposerSelector type
func NewProposerSelector ¶
func NewProposerSelector(t interface {
mock.TestingT
Cleanup(func())
}) *ProposerSelector
NewProposerSelector creates a new instance of ProposerSelector. 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 (*ProposerSelector) Copy ¶
func (_mock *ProposerSelector) Copy() selectproposer.ProposerSelector
Copy provides a mock function for the type ProposerSelector
func (*ProposerSelector) EXPECT ¶ added in v1.4.0
func (_m *ProposerSelector) EXPECT() *ProposerSelector_Expecter
func (*ProposerSelector) GetProposer ¶
GetProposer provides a mock function for the type ProposerSelector
func (*ProposerSelector) MustGetProposer ¶
func (_mock *ProposerSelector) MustGetProposer(height int64, round int32) *types.Validator
MustGetProposer provides a mock function for the type ProposerSelector
func (*ProposerSelector) UpdateHeightRound ¶
func (_mock *ProposerSelector) UpdateHeightRound(height int64, round int32) error
UpdateHeightRound provides a mock function for the type ProposerSelector
func (*ProposerSelector) ValidatorSet ¶
func (_mock *ProposerSelector) ValidatorSet() *types.ValidatorSet
ValidatorSet provides a mock function for the type ProposerSelector
type ProposerSelector_Copy_Call ¶ added in v1.4.0
ProposerSelector_Copy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Copy'
func (*ProposerSelector_Copy_Call) Return ¶ added in v1.4.0
func (_c *ProposerSelector_Copy_Call) Return(proposerSelector selectproposer.ProposerSelector) *ProposerSelector_Copy_Call
func (*ProposerSelector_Copy_Call) Run ¶ added in v1.4.0
func (_c *ProposerSelector_Copy_Call) Run(run func()) *ProposerSelector_Copy_Call
func (*ProposerSelector_Copy_Call) RunAndReturn ¶ added in v1.4.0
func (_c *ProposerSelector_Copy_Call) RunAndReturn(run func() selectproposer.ProposerSelector) *ProposerSelector_Copy_Call
type ProposerSelector_Expecter ¶ added in v1.4.0
type ProposerSelector_Expecter struct {
// contains filtered or unexported fields
}
func (*ProposerSelector_Expecter) Copy ¶ added in v1.4.0
func (_e *ProposerSelector_Expecter) Copy() *ProposerSelector_Copy_Call
Copy is a helper method to define mock.On call
func (*ProposerSelector_Expecter) GetProposer ¶ added in v1.4.0
func (_e *ProposerSelector_Expecter) GetProposer(height interface{}, round interface{}) *ProposerSelector_GetProposer_Call
GetProposer is a helper method to define mock.On call
- height
- round
func (*ProposerSelector_Expecter) MustGetProposer ¶ added in v1.4.0
func (_e *ProposerSelector_Expecter) MustGetProposer(height interface{}, round interface{}) *ProposerSelector_MustGetProposer_Call
MustGetProposer is a helper method to define mock.On call
- height
- round
func (*ProposerSelector_Expecter) UpdateHeightRound ¶ added in v1.4.0
func (_e *ProposerSelector_Expecter) UpdateHeightRound(height interface{}, round interface{}) *ProposerSelector_UpdateHeightRound_Call
UpdateHeightRound is a helper method to define mock.On call
- height
- round
func (*ProposerSelector_Expecter) ValidatorSet ¶ added in v1.4.0
func (_e *ProposerSelector_Expecter) ValidatorSet() *ProposerSelector_ValidatorSet_Call
ValidatorSet is a helper method to define mock.On call
type ProposerSelector_GetProposer_Call ¶ added in v1.4.0
ProposerSelector_GetProposer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProposer'
func (*ProposerSelector_GetProposer_Call) Return ¶ added in v1.4.0
func (_c *ProposerSelector_GetProposer_Call) Return(validator *types.Validator, err error) *ProposerSelector_GetProposer_Call
func (*ProposerSelector_GetProposer_Call) Run ¶ added in v1.4.0
func (_c *ProposerSelector_GetProposer_Call) Run(run func(height int64, round int32)) *ProposerSelector_GetProposer_Call
func (*ProposerSelector_GetProposer_Call) RunAndReturn ¶ added in v1.4.0
func (_c *ProposerSelector_GetProposer_Call) RunAndReturn(run func(height int64, round int32) (*types.Validator, error)) *ProposerSelector_GetProposer_Call
type ProposerSelector_MustGetProposer_Call ¶ added in v1.4.0
ProposerSelector_MustGetProposer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MustGetProposer'
func (*ProposerSelector_MustGetProposer_Call) Return ¶ added in v1.4.0
func (_c *ProposerSelector_MustGetProposer_Call) Return(validator *types.Validator) *ProposerSelector_MustGetProposer_Call
func (*ProposerSelector_MustGetProposer_Call) Run ¶ added in v1.4.0
func (_c *ProposerSelector_MustGetProposer_Call) Run(run func(height int64, round int32)) *ProposerSelector_MustGetProposer_Call
func (*ProposerSelector_MustGetProposer_Call) RunAndReturn ¶ added in v1.4.0
func (_c *ProposerSelector_MustGetProposer_Call) RunAndReturn(run func(height int64, round int32) *types.Validator) *ProposerSelector_MustGetProposer_Call
type ProposerSelector_UpdateHeightRound_Call ¶ added in v1.4.0
ProposerSelector_UpdateHeightRound_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateHeightRound'
func (*ProposerSelector_UpdateHeightRound_Call) Return ¶ added in v1.4.0
func (_c *ProposerSelector_UpdateHeightRound_Call) Return(err error) *ProposerSelector_UpdateHeightRound_Call
func (*ProposerSelector_UpdateHeightRound_Call) Run ¶ added in v1.4.0
func (_c *ProposerSelector_UpdateHeightRound_Call) Run(run func(height int64, round int32)) *ProposerSelector_UpdateHeightRound_Call
func (*ProposerSelector_UpdateHeightRound_Call) RunAndReturn ¶ added in v1.4.0
func (_c *ProposerSelector_UpdateHeightRound_Call) RunAndReturn(run func(height int64, round int32) error) *ProposerSelector_UpdateHeightRound_Call
type ProposerSelector_ValidatorSet_Call ¶ added in v1.4.0
ProposerSelector_ValidatorSet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidatorSet'
func (*ProposerSelector_ValidatorSet_Call) Return ¶ added in v1.4.0
func (_c *ProposerSelector_ValidatorSet_Call) Return(validatorSet *types.ValidatorSet) *ProposerSelector_ValidatorSet_Call
func (*ProposerSelector_ValidatorSet_Call) Run ¶ added in v1.4.0
func (_c *ProposerSelector_ValidatorSet_Call) Run(run func()) *ProposerSelector_ValidatorSet_Call
func (*ProposerSelector_ValidatorSet_Call) RunAndReturn ¶ added in v1.4.0
func (_c *ProposerSelector_ValidatorSet_Call) RunAndReturn(run func() *types.ValidatorSet) *ProposerSelector_ValidatorSet_Call