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

func (*CurrencyPairStrategy) FromID

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

func (*CurrencyPairStrategy) GetDecodedPrice

func (_m *CurrencyPairStrategy) GetDecodedPrice(ctx types.Context, cp pkgtypes.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 pkgtypes.CurrencyPair, price *big.Int) ([]byte, error)

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

func (*CurrencyPairStrategy) GetMaxNumCP

func (_m *CurrencyPairStrategy) GetMaxNumCP(ctx types.Context) (uint64, error)

GetMaxNumCP provides a mock function with given fields: ctx

func (*CurrencyPairStrategy) ID

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

type CurrencyPairStrategy_Expecter

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

func (*CurrencyPairStrategy_Expecter) FromID

func (_e *CurrencyPairStrategy_Expecter) FromID(ctx interface{}, id interface{}) *CurrencyPairStrategy_FromID_Call

FromID is a helper method to define mock.On call

  • ctx types.Context
  • id uint64

func (*CurrencyPairStrategy_Expecter) GetDecodedPrice

func (_e *CurrencyPairStrategy_Expecter) GetDecodedPrice(ctx interface{}, cp interface{}, priceBytes interface{}) *CurrencyPairStrategy_GetDecodedPrice_Call

GetDecodedPrice is a helper method to define mock.On call

  • ctx types.Context
  • cp pkgtypes.CurrencyPair
  • priceBytes []byte

func (*CurrencyPairStrategy_Expecter) GetEncodedPrice

func (_e *CurrencyPairStrategy_Expecter) GetEncodedPrice(ctx interface{}, cp interface{}, price interface{}) *CurrencyPairStrategy_GetEncodedPrice_Call

GetEncodedPrice is a helper method to define mock.On call

  • ctx types.Context
  • cp pkgtypes.CurrencyPair
  • price *big.Int

func (*CurrencyPairStrategy_Expecter) GetMaxNumCP

func (_e *CurrencyPairStrategy_Expecter) GetMaxNumCP(ctx interface{}) *CurrencyPairStrategy_GetMaxNumCP_Call

GetMaxNumCP is a helper method to define mock.On call

  • ctx types.Context

func (*CurrencyPairStrategy_Expecter) ID

func (_e *CurrencyPairStrategy_Expecter) ID(ctx interface{}, cp interface{}) *CurrencyPairStrategy_ID_Call

ID is a helper method to define mock.On call

  • ctx types.Context
  • cp pkgtypes.CurrencyPair

type CurrencyPairStrategy_FromID_Call

type CurrencyPairStrategy_FromID_Call struct {
	*mock.Call
}

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

func (*CurrencyPairStrategy_FromID_Call) Return

func (*CurrencyPairStrategy_FromID_Call) Run

func (*CurrencyPairStrategy_FromID_Call) RunAndReturn

type CurrencyPairStrategy_GetDecodedPrice_Call

type CurrencyPairStrategy_GetDecodedPrice_Call struct {
	*mock.Call
}

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

func (*CurrencyPairStrategy_GetDecodedPrice_Call) Return

func (*CurrencyPairStrategy_GetDecodedPrice_Call) Run

func (*CurrencyPairStrategy_GetDecodedPrice_Call) RunAndReturn

type CurrencyPairStrategy_GetEncodedPrice_Call

type CurrencyPairStrategy_GetEncodedPrice_Call struct {
	*mock.Call
}

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

func (*CurrencyPairStrategy_GetEncodedPrice_Call) Return

func (*CurrencyPairStrategy_GetEncodedPrice_Call) Run

func (*CurrencyPairStrategy_GetEncodedPrice_Call) RunAndReturn

type CurrencyPairStrategy_GetMaxNumCP_Call

type CurrencyPairStrategy_GetMaxNumCP_Call struct {
	*mock.Call
}

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

func (*CurrencyPairStrategy_GetMaxNumCP_Call) Return

func (*CurrencyPairStrategy_GetMaxNumCP_Call) Run

func (*CurrencyPairStrategy_GetMaxNumCP_Call) RunAndReturn

type CurrencyPairStrategy_ID_Call

type CurrencyPairStrategy_ID_Call struct {
	*mock.Call
}

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

func (*CurrencyPairStrategy_ID_Call) Return

func (*CurrencyPairStrategy_ID_Call) Run

func (*CurrencyPairStrategy_ID_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) GetAllCurrencyPairs

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

GetAllCurrencyPairs provides a mock function with given fields: ctx

func (*OracleKeeper) GetCurrencyPairFromID

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

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

func (*OracleKeeper) GetIDForCurrencyPair

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

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

func (*OracleKeeper) GetNumCurrencyPairs

func (_m *OracleKeeper) GetNumCurrencyPairs(ctx context.Context) (uint64, error)

GetNumCurrencyPairs provides a mock function with given fields: ctx

func (*OracleKeeper) GetNumRemovedCurrencyPairs

func (_m *OracleKeeper) GetNumRemovedCurrencyPairs(ctx context.Context) (uint64, error)

GetNumRemovedCurrencyPairs provides a mock function with given fields: ctx

func (*OracleKeeper) GetPriceForCurrencyPair

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

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

type OracleKeeper_Expecter

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

func (*OracleKeeper_Expecter) GetAllCurrencyPairs

func (_e *OracleKeeper_Expecter) GetAllCurrencyPairs(ctx interface{}) *OracleKeeper_GetAllCurrencyPairs_Call

GetAllCurrencyPairs is a helper method to define mock.On call

  • ctx context.Context

func (*OracleKeeper_Expecter) GetCurrencyPairFromID

func (_e *OracleKeeper_Expecter) GetCurrencyPairFromID(ctx interface{}, id interface{}) *OracleKeeper_GetCurrencyPairFromID_Call

GetCurrencyPairFromID is a helper method to define mock.On call

  • ctx context.Context
  • id uint64

func (*OracleKeeper_Expecter) GetIDForCurrencyPair

func (_e *OracleKeeper_Expecter) GetIDForCurrencyPair(ctx interface{}, cp interface{}) *OracleKeeper_GetIDForCurrencyPair_Call

GetIDForCurrencyPair is a helper method to define mock.On call

  • ctx context.Context
  • cp types.CurrencyPair

func (*OracleKeeper_Expecter) GetNumCurrencyPairs

func (_e *OracleKeeper_Expecter) GetNumCurrencyPairs(ctx interface{}) *OracleKeeper_GetNumCurrencyPairs_Call

GetNumCurrencyPairs is a helper method to define mock.On call

  • ctx context.Context

func (*OracleKeeper_Expecter) GetNumRemovedCurrencyPairs

func (_e *OracleKeeper_Expecter) GetNumRemovedCurrencyPairs(ctx interface{}) *OracleKeeper_GetNumRemovedCurrencyPairs_Call

GetNumRemovedCurrencyPairs is a helper method to define mock.On call

  • ctx context.Context

func (*OracleKeeper_Expecter) GetPriceForCurrencyPair

func (_e *OracleKeeper_Expecter) GetPriceForCurrencyPair(ctx interface{}, cp interface{}) *OracleKeeper_GetPriceForCurrencyPair_Call

GetPriceForCurrencyPair is a helper method to define mock.On call

  • ctx context.Context
  • cp types.CurrencyPair

type OracleKeeper_GetAllCurrencyPairs_Call

type OracleKeeper_GetAllCurrencyPairs_Call struct {
	*mock.Call
}

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

func (*OracleKeeper_GetAllCurrencyPairs_Call) Return

func (*OracleKeeper_GetAllCurrencyPairs_Call) Run

func (*OracleKeeper_GetAllCurrencyPairs_Call) RunAndReturn

type OracleKeeper_GetCurrencyPairFromID_Call

type OracleKeeper_GetCurrencyPairFromID_Call struct {
	*mock.Call
}

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

func (*OracleKeeper_GetCurrencyPairFromID_Call) Return

func (*OracleKeeper_GetCurrencyPairFromID_Call) Run

func (*OracleKeeper_GetCurrencyPairFromID_Call) RunAndReturn

type OracleKeeper_GetIDForCurrencyPair_Call

type OracleKeeper_GetIDForCurrencyPair_Call struct {
	*mock.Call
}

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

func (*OracleKeeper_GetIDForCurrencyPair_Call) Return

func (*OracleKeeper_GetIDForCurrencyPair_Call) Run

func (*OracleKeeper_GetIDForCurrencyPair_Call) RunAndReturn

type OracleKeeper_GetNumCurrencyPairs_Call

type OracleKeeper_GetNumCurrencyPairs_Call struct {
	*mock.Call
}

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

func (*OracleKeeper_GetNumCurrencyPairs_Call) Return

func (*OracleKeeper_GetNumCurrencyPairs_Call) Run

func (*OracleKeeper_GetNumCurrencyPairs_Call) RunAndReturn

type OracleKeeper_GetNumRemovedCurrencyPairs_Call

type OracleKeeper_GetNumRemovedCurrencyPairs_Call struct {
	*mock.Call
}

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

func (*OracleKeeper_GetNumRemovedCurrencyPairs_Call) Return

func (*OracleKeeper_GetNumRemovedCurrencyPairs_Call) Run

func (*OracleKeeper_GetNumRemovedCurrencyPairs_Call) RunAndReturn

type OracleKeeper_GetPriceForCurrencyPair_Call

type OracleKeeper_GetPriceForCurrencyPair_Call struct {
	*mock.Call
}

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

func (*OracleKeeper_GetPriceForCurrencyPair_Call) Return

func (*OracleKeeper_GetPriceForCurrencyPair_Call) Run

func (*OracleKeeper_GetPriceForCurrencyPair_Call) RunAndReturn

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳