mocks

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountedPoolKeeper

type AccountedPoolKeeper struct {
	mock.Mock
}

AccountedPoolKeeper is an autogenerated mock type for the AccountedPoolKeeper type

func NewAccountedPoolKeeper

func NewAccountedPoolKeeper(t interface {
	mock.TestingT
	Cleanup(func())
}) *AccountedPoolKeeper

NewAccountedPoolKeeper creates a new instance of AccountedPoolKeeper. 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 (*AccountedPoolKeeper) EXPECT

func (*AccountedPoolKeeper) GetAccountedBalance

func (_m *AccountedPoolKeeper) GetAccountedBalance(_a0 types.Context, _a1 uint64, _a2 string) math.Int

GetAccountedBalance provides a mock function with given fields: _a0, _a1, _a2

type AccountedPoolKeeper_Expecter

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

func (*AccountedPoolKeeper_Expecter) GetAccountedBalance

func (_e *AccountedPoolKeeper_Expecter) GetAccountedBalance(_a0 interface{}, _a1 interface{}, _a2 interface{}) *AccountedPoolKeeper_GetAccountedBalance_Call

GetAccountedBalance is a helper method to define mock.On call

  • _a0 types.Context
  • _a1 uint64
  • _a2 string

type AccountedPoolKeeper_GetAccountedBalance_Call

type AccountedPoolKeeper_GetAccountedBalance_Call struct {
	*mock.Call
}

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

func (*AccountedPoolKeeper_GetAccountedBalance_Call) Return

func (*AccountedPoolKeeper_GetAccountedBalance_Call) Run

func (*AccountedPoolKeeper_GetAccountedBalance_Call) RunAndReturn

type OracleKeeper

type OracleKeeper struct {
	mock.Mock
}

OracleKeeper is an autogenerated mock type for the OracleKeeper type

func NewOracleKeeper

func NewOracleKeeper(t interface {
	mock.TestingT
	Cleanup(func())
}) *OracleKeeper

NewOracleKeeper creates a new instance of OracleKeeper. 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 (*OracleKeeper) EXPECT

func (_m *OracleKeeper) EXPECT() *OracleKeeper_Expecter

func (*OracleKeeper) GetAssetPrice

func (_m *OracleKeeper) GetAssetPrice(ctx types.Context, asset string) (oracletypes.Price, bool)

GetAssetPrice provides a mock function with given fields: ctx, asset

func (*OracleKeeper) GetAssetPriceFromDenom

func (_m *OracleKeeper) GetAssetPriceFromDenom(ctx types.Context, denom string) math.LegacyDec

GetAssetPriceFromDenom provides a mock function with given fields: ctx, denom

func (*OracleKeeper) GetPriceFeeder

func (_m *OracleKeeper) GetPriceFeeder(ctx types.Context, feeder types.AccAddress) (oracletypes.PriceFeeder, bool)

GetPriceFeeder provides a mock function with given fields: ctx, feeder

type OracleKeeper_Expecter

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

func (*OracleKeeper_Expecter) GetAssetPrice

func (_e *OracleKeeper_Expecter) GetAssetPrice(ctx interface{}, asset interface{}) *OracleKeeper_GetAssetPrice_Call

GetAssetPrice is a helper method to define mock.On call

  • ctx types.Context
  • asset string

func (*OracleKeeper_Expecter) GetAssetPriceFromDenom

func (_e *OracleKeeper_Expecter) GetAssetPriceFromDenom(ctx interface{}, denom interface{}) *OracleKeeper_GetAssetPriceFromDenom_Call

GetAssetPriceFromDenom is a helper method to define mock.On call

  • ctx types.Context
  • denom string

func (*OracleKeeper_Expecter) GetPriceFeeder

func (_e *OracleKeeper_Expecter) GetPriceFeeder(ctx interface{}, feeder interface{}) *OracleKeeper_GetPriceFeeder_Call

GetPriceFeeder is a helper method to define mock.On call

  • ctx types.Context
  • feeder types.AccAddress

type OracleKeeper_GetAssetPriceFromDenom_Call

type OracleKeeper_GetAssetPriceFromDenom_Call struct {
	*mock.Call
}

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

func (*OracleKeeper_GetAssetPriceFromDenom_Call) Return

func (*OracleKeeper_GetAssetPriceFromDenom_Call) Run

func (*OracleKeeper_GetAssetPriceFromDenom_Call) RunAndReturn

type OracleKeeper_GetAssetPrice_Call

type OracleKeeper_GetAssetPrice_Call struct {
	*mock.Call
}

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

func (*OracleKeeper_GetAssetPrice_Call) Return

func (*OracleKeeper_GetAssetPrice_Call) Run

func (*OracleKeeper_GetAssetPrice_Call) RunAndReturn

type OracleKeeper_GetPriceFeeder_Call

type OracleKeeper_GetPriceFeeder_Call struct {
	*mock.Call
}

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

func (*OracleKeeper_GetPriceFeeder_Call) Return

func (*OracleKeeper_GetPriceFeeder_Call) Run

func (*OracleKeeper_GetPriceFeeder_Call) RunAndReturn

Jump to

Keyboard shortcuts

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