mocks

package
v0.0.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 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 CurrencyPairStrategy

type CurrencyPairStrategy struct {
	mock.Mock
}

CurrencyPairStrategy is an autogenerated mock type for the CurrencyPairStrategy type

func NewCurrencyPairStrategy

func NewCurrencyPairStrategy(t interface {
	mock.TestingT
	Cleanup(func())
},
) *CurrencyPairStrategy

NewCurrencyPairStrategy creates a new instance of CurrencyPairStrategy. 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 (*CurrencyPairStrategy) FromID

FromID provides a mock function with given fields: ctx, id

func (*CurrencyPairStrategy) GetDecodedPrice

func (_m *CurrencyPairStrategy) GetDecodedPrice(ctx types.Context, cp oracletypes.CurrencyPair, priceBytes []byte) (*big.Int, error)

GetDecodedPrice provides a mock function with given fields: ctx, cp, priceBytes

func (*CurrencyPairStrategy) GetEncodedPrice

func (_m *CurrencyPairStrategy) GetEncodedPrice(ctx types.Context, cp oracletypes.CurrencyPair, price *big.Int) ([]byte, error)

GetEncodedPrice provides a mock function with given fields: ctx, cp, price

func (*CurrencyPairStrategy) ID

ID provides a mock function with given fields: ctx, cp

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) GetAllCurrencyPairs

func (_m *OracleKeeper) GetAllCurrencyPairs(ctx types.Context) []oracletypes.CurrencyPair

GetAllCurrencyPairs provides a mock function with given fields: ctx

func (*OracleKeeper) GetCurrencyPairFromID

func (_m *OracleKeeper) GetCurrencyPairFromID(ctx types.Context, id uint64) (oracletypes.CurrencyPair, bool)

GetCurrencyPairFromID provides a mock function with given fields: ctx, id

func (*OracleKeeper) GetIDForCurrencyPair

func (_m *OracleKeeper) GetIDForCurrencyPair(ctx types.Context, cp oracletypes.CurrencyPair) (uint64, bool)

GetIDForCurrencyPair provides a mock function with given fields: ctx, cp

func (*OracleKeeper) GetPriceForCurrencyPair

func (_m *OracleKeeper) GetPriceForCurrencyPair(ctx types.Context, cp oracletypes.CurrencyPair) (oracletypes.QuotePrice, error)

GetPriceForCurrencyPair provides a mock function with given fields: ctx, cp

Jump to

Keyboard shortcuts

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