mocks

package
v0.45.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 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) 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

Jump to

Keyboard shortcuts

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