mocks

package
v1.5.0-dev.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2025 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 ProposerSelector

type ProposerSelector struct {
	mock.Mock
}

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

Copy provides a mock function for the type ProposerSelector

func (*ProposerSelector) EXPECT added in v1.4.0

func (*ProposerSelector) GetProposer

func (_mock *ProposerSelector) GetProposer(height int64, round int32) (*types.Validator, error)

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

type ProposerSelector_Copy_Call struct {
	*mock.Call
}

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 (*ProposerSelector_Copy_Call) Run added in v1.4.0

func (*ProposerSelector_Copy_Call) RunAndReturn added in v1.4.0

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

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

ValidatorSet is a helper method to define mock.On call

type ProposerSelector_GetProposer_Call added in v1.4.0

type ProposerSelector_GetProposer_Call struct {
	*mock.Call
}

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 (*ProposerSelector_GetProposer_Call) Run added in v1.4.0

func (*ProposerSelector_GetProposer_Call) RunAndReturn added in v1.4.0

type ProposerSelector_MustGetProposer_Call added in v1.4.0

type ProposerSelector_MustGetProposer_Call struct {
	*mock.Call
}

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 (*ProposerSelector_MustGetProposer_Call) Run added in v1.4.0

func (*ProposerSelector_MustGetProposer_Call) RunAndReturn added in v1.4.0

type ProposerSelector_UpdateHeightRound_Call added in v1.4.0

type ProposerSelector_UpdateHeightRound_Call struct {
	*mock.Call
}

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 (*ProposerSelector_UpdateHeightRound_Call) Run added in v1.4.0

func (*ProposerSelector_UpdateHeightRound_Call) RunAndReturn added in v1.4.0

type ProposerSelector_ValidatorSet_Call added in v1.4.0

type ProposerSelector_ValidatorSet_Call struct {
	*mock.Call
}

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 (*ProposerSelector_ValidatorSet_Call) Run added in v1.4.0

func (*ProposerSelector_ValidatorSet_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