mocks

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PriceApplier

type PriceApplier struct {
	mock.Mock
}

PriceApplier is an autogenerated mock type for the PriceApplier type

func NewPriceApplier

func NewPriceApplier(t interface {
	mock.TestingT
	Cleanup(func())
}) *PriceApplier

NewPriceApplier creates a new instance of PriceApplier. 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 (*PriceApplier) ApplyPricesFromVoteExtensions

func (_m *PriceApplier) ApplyPricesFromVoteExtensions(ctx types.Context, req *abcitypes.RequestFinalizeBlock) (map[pkgtypes.CurrencyPair]*big.Int, error)

ApplyPricesFromVoteExtensions provides a mock function with given fields: ctx, req

func (*PriceApplier) EXPECT

func (_m *PriceApplier) EXPECT() *PriceApplier_Expecter

func (*PriceApplier) GetPricesForValidator

func (_m *PriceApplier) GetPricesForValidator(validator types.ConsAddress) map[pkgtypes.CurrencyPair]*big.Int

GetPricesForValidator provides a mock function with given fields: validator

type PriceApplier_ApplyPricesFromVoteExtensions_Call

type PriceApplier_ApplyPricesFromVoteExtensions_Call struct {
	*mock.Call
}

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

func (*PriceApplier_ApplyPricesFromVoteExtensions_Call) Return

func (*PriceApplier_ApplyPricesFromVoteExtensions_Call) Run

type PriceApplier_Expecter

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

func (*PriceApplier_Expecter) ApplyPricesFromVoteExtensions

func (_e *PriceApplier_Expecter) ApplyPricesFromVoteExtensions(ctx interface{}, req interface{}) *PriceApplier_ApplyPricesFromVoteExtensions_Call

ApplyPricesFromVoteExtensions is a helper method to define mock.On call

  • ctx types.Context
  • req *abcitypes.RequestFinalizeBlock

func (*PriceApplier_Expecter) GetPricesForValidator

func (_e *PriceApplier_Expecter) GetPricesForValidator(validator interface{}) *PriceApplier_GetPricesForValidator_Call

GetPricesForValidator is a helper method to define mock.On call

  • validator types.ConsAddress

type PriceApplier_GetPricesForValidator_Call

type PriceApplier_GetPricesForValidator_Call struct {
	*mock.Call
}

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

func (*PriceApplier_GetPricesForValidator_Call) Return

func (*PriceApplier_GetPricesForValidator_Call) Run

func (*PriceApplier_GetPricesForValidator_Call) RunAndReturn

type VoteAggregator

type VoteAggregator struct {
	mock.Mock
}

VoteAggregator is an autogenerated mock type for the VoteAggregator type

func NewVoteAggregator

func NewVoteAggregator(t interface {
	mock.TestingT
	Cleanup(func())
}) *VoteAggregator

NewVoteAggregator creates a new instance of VoteAggregator. 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 (*VoteAggregator) AggregateOracleVotes

func (_m *VoteAggregator) AggregateOracleVotes(ctx types.Context, votes []aggregator.Vote) (map[pkgtypes.CurrencyPair]*big.Int, error)

AggregateOracleVotes provides a mock function with given fields: ctx, votes

func (*VoteAggregator) EXPECT

func (*VoteAggregator) GetPriceForValidator

func (_m *VoteAggregator) GetPriceForValidator(validator types.ConsAddress) map[pkgtypes.CurrencyPair]*big.Int

GetPriceForValidator provides a mock function with given fields: validator

type VoteAggregator_AggregateOracleVotes_Call

type VoteAggregator_AggregateOracleVotes_Call struct {
	*mock.Call
}

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

func (*VoteAggregator_AggregateOracleVotes_Call) Return

func (*VoteAggregator_AggregateOracleVotes_Call) Run

func (*VoteAggregator_AggregateOracleVotes_Call) RunAndReturn

type VoteAggregator_Expecter

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

func (*VoteAggregator_Expecter) AggregateOracleVotes

func (_e *VoteAggregator_Expecter) AggregateOracleVotes(ctx interface{}, votes interface{}) *VoteAggregator_AggregateOracleVotes_Call

AggregateOracleVotes is a helper method to define mock.On call

  • ctx types.Context
  • votes []aggregator.Vote

func (*VoteAggregator_Expecter) GetPriceForValidator

func (_e *VoteAggregator_Expecter) GetPriceForValidator(validator interface{}) *VoteAggregator_GetPriceForValidator_Call

GetPriceForValidator is a helper method to define mock.On call

  • validator types.ConsAddress

type VoteAggregator_GetPriceForValidator_Call

type VoteAggregator_GetPriceForValidator_Call struct {
	*mock.Call
}

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

func (*VoteAggregator_GetPriceForValidator_Call) Return

func (*VoteAggregator_GetPriceForValidator_Call) Run

func (*VoteAggregator_GetPriceForValidator_Call) RunAndReturn

Jump to

Keyboard shortcuts

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