mocks

package
v0.51.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AmmKeeper

type AmmKeeper struct {
	mock.Mock
}

AmmKeeper is an autogenerated mock type for the AmmKeeper type

func NewAmmKeeper

func NewAmmKeeper(t interface {
	mock.TestingT
	Cleanup(func())
}) *AmmKeeper

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

func (_m *AmmKeeper) EXPECT() *AmmKeeper_Expecter

func (*AmmKeeper) SwapByDenom

SwapByDenom provides a mock function with given fields: ctx, msg

type AmmKeeper_Expecter

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

func (*AmmKeeper_Expecter) SwapByDenom

func (_e *AmmKeeper_Expecter) SwapByDenom(ctx interface{}, msg interface{}) *AmmKeeper_SwapByDenom_Call

SwapByDenom is a helper method to define mock.On call

  • ctx types.Context
  • msg *ammtypes.MsgSwapByDenom

type AmmKeeper_SwapByDenom_Call

type AmmKeeper_SwapByDenom_Call struct {
	*mock.Call
}

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

func (*AmmKeeper_SwapByDenom_Call) Return

func (*AmmKeeper_SwapByDenom_Call) Run

type PerpetualKeeper

type PerpetualKeeper struct {
	mock.Mock
}

PerpetualKeeper is an autogenerated mock type for the PerpetualKeeper type

func NewPerpetualKeeper

func NewPerpetualKeeper(t interface {
	mock.TestingT
	Cleanup(func())
}) *PerpetualKeeper

NewPerpetualKeeper creates a new instance of PerpetualKeeper. 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 (*PerpetualKeeper) Close

Close provides a mock function with given fields: ctx, msg

func (*PerpetualKeeper) EXPECT

func (*PerpetualKeeper) GetAssetPrice added in v0.49.3

func (_m *PerpetualKeeper) GetAssetPrice(ctx types.Context, asset string) (math.LegacyDec, error)

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

func (*PerpetualKeeper) GetMTP added in v0.48.0

func (_m *PerpetualKeeper) GetMTP(ctx types.Context, mtpAddress types.AccAddress, id uint64) (perpetualtypes.MTP, error)

GetMTP provides a mock function with given fields: ctx, mtpAddress, id

func (*PerpetualKeeper) GetMTPsForAddressWithPagination added in v0.49.4

func (_m *PerpetualKeeper) GetMTPsForAddressWithPagination(ctx types.Context, mtpAddress types.AccAddress, pagination *query.PageRequest) ([]*perpetualtypes.MtpAndPrice, *query.PageResponse, error)

GetMTPsForAddressWithPagination provides a mock function with given fields: ctx, mtpAddress, pagination

func (*PerpetualKeeper) GetPool added in v0.48.0

func (_m *PerpetualKeeper) GetPool(ctx types.Context, poolId uint64) (perpetualtypes.Pool, bool)

GetPool provides a mock function with given fields: ctx, poolId

func (*PerpetualKeeper) HandleCloseEstimation added in v0.48.0

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

func (*PerpetualKeeper) HandleOpenEstimation added in v0.48.0

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

func (*PerpetualKeeper) Open

Open provides a mock function with given fields: ctx, msg, isBroker

type PerpetualKeeper_Close_Call

type PerpetualKeeper_Close_Call struct {
	*mock.Call
}

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

func (*PerpetualKeeper_Close_Call) Return

func (*PerpetualKeeper_Close_Call) Run

type PerpetualKeeper_Expecter

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

func (*PerpetualKeeper_Expecter) Close

func (_e *PerpetualKeeper_Expecter) Close(ctx interface{}, msg interface{}) *PerpetualKeeper_Close_Call

Close is a helper method to define mock.On call

  • ctx types.Context
  • msg *perpetualtypes.MsgClose

func (*PerpetualKeeper_Expecter) GetAssetPrice added in v0.49.3

func (_e *PerpetualKeeper_Expecter) GetAssetPrice(ctx interface{}, asset interface{}) *PerpetualKeeper_GetAssetPrice_Call

GetAssetPrice is a helper method to define mock.On call

  • ctx types.Context
  • asset string

func (*PerpetualKeeper_Expecter) GetMTP added in v0.48.0

func (_e *PerpetualKeeper_Expecter) GetMTP(ctx interface{}, mtpAddress interface{}, id interface{}) *PerpetualKeeper_GetMTP_Call

GetMTP is a helper method to define mock.On call

  • ctx types.Context
  • mtpAddress types.AccAddress
  • id uint64

func (*PerpetualKeeper_Expecter) GetMTPsForAddressWithPagination added in v0.49.4

func (_e *PerpetualKeeper_Expecter) GetMTPsForAddressWithPagination(ctx interface{}, mtpAddress interface{}, pagination interface{}) *PerpetualKeeper_GetMTPsForAddressWithPagination_Call

GetMTPsForAddressWithPagination is a helper method to define mock.On call

  • ctx types.Context
  • mtpAddress types.AccAddress
  • pagination *query.PageRequest

func (*PerpetualKeeper_Expecter) GetPool added in v0.48.0

func (_e *PerpetualKeeper_Expecter) GetPool(ctx interface{}, poolId interface{}) *PerpetualKeeper_GetPool_Call

GetPool is a helper method to define mock.On call

  • ctx types.Context
  • poolId uint64

func (*PerpetualKeeper_Expecter) HandleCloseEstimation added in v0.48.0

func (_e *PerpetualKeeper_Expecter) HandleCloseEstimation(ctx interface{}, req interface{}) *PerpetualKeeper_HandleCloseEstimation_Call

HandleCloseEstimation is a helper method to define mock.On call

  • ctx types.Context
  • req *perpetualtypes.QueryCloseEstimationRequest

func (*PerpetualKeeper_Expecter) HandleOpenEstimation added in v0.48.0

func (_e *PerpetualKeeper_Expecter) HandleOpenEstimation(ctx interface{}, req interface{}) *PerpetualKeeper_HandleOpenEstimation_Call

HandleOpenEstimation is a helper method to define mock.On call

  • ctx types.Context
  • req *perpetualtypes.QueryOpenEstimationRequest

func (*PerpetualKeeper_Expecter) Open

func (_e *PerpetualKeeper_Expecter) Open(ctx interface{}, msg interface{}, isBroker interface{}) *PerpetualKeeper_Open_Call

Open is a helper method to define mock.On call

  • ctx types.Context
  • msg *perpetualtypes.MsgOpen
  • isBroker bool

type PerpetualKeeper_GetAssetPrice_Call added in v0.49.3

type PerpetualKeeper_GetAssetPrice_Call struct {
	*mock.Call
}

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

func (*PerpetualKeeper_GetAssetPrice_Call) Return added in v0.49.3

func (*PerpetualKeeper_GetAssetPrice_Call) Run added in v0.49.3

func (*PerpetualKeeper_GetAssetPrice_Call) RunAndReturn added in v0.49.3

type PerpetualKeeper_GetMTP_Call added in v0.48.0

type PerpetualKeeper_GetMTP_Call struct {
	*mock.Call
}

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

func (*PerpetualKeeper_GetMTP_Call) Return added in v0.48.0

func (*PerpetualKeeper_GetMTP_Call) Run added in v0.48.0

func (*PerpetualKeeper_GetMTP_Call) RunAndReturn added in v0.48.0

type PerpetualKeeper_GetMTPsForAddressWithPagination_Call added in v0.49.4

type PerpetualKeeper_GetMTPsForAddressWithPagination_Call struct {
	*mock.Call
}

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

func (*PerpetualKeeper_GetMTPsForAddressWithPagination_Call) Return added in v0.49.4

func (*PerpetualKeeper_GetMTPsForAddressWithPagination_Call) Run added in v0.49.4

func (*PerpetualKeeper_GetMTPsForAddressWithPagination_Call) RunAndReturn added in v0.49.4

type PerpetualKeeper_GetPool_Call added in v0.48.0

type PerpetualKeeper_GetPool_Call struct {
	*mock.Call
}

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

func (*PerpetualKeeper_GetPool_Call) Return added in v0.48.0

func (*PerpetualKeeper_GetPool_Call) Run added in v0.48.0

func (*PerpetualKeeper_GetPool_Call) RunAndReturn added in v0.48.0

type PerpetualKeeper_HandleCloseEstimation_Call added in v0.48.0

type PerpetualKeeper_HandleCloseEstimation_Call struct {
	*mock.Call
}

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

func (*PerpetualKeeper_HandleCloseEstimation_Call) Return added in v0.48.0

func (*PerpetualKeeper_HandleCloseEstimation_Call) Run added in v0.48.0

type PerpetualKeeper_HandleOpenEstimation_Call added in v0.48.0

type PerpetualKeeper_HandleOpenEstimation_Call struct {
	*mock.Call
}

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

func (*PerpetualKeeper_HandleOpenEstimation_Call) Return added in v0.48.0

func (*PerpetualKeeper_HandleOpenEstimation_Call) Run added in v0.48.0

type PerpetualKeeper_Open_Call

type PerpetualKeeper_Open_Call struct {
	*mock.Call
}

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

func (*PerpetualKeeper_Open_Call) Return

func (*PerpetualKeeper_Open_Call) Run

func (*PerpetualKeeper_Open_Call) RunAndReturn

type TierKeeper

type TierKeeper struct {
	mock.Mock
}

TierKeeper is an autogenerated mock type for the TierKeeper type

func NewTierKeeper

func NewTierKeeper(t interface {
	mock.TestingT
	Cleanup(func())
}) *TierKeeper

NewTierKeeper creates a new instance of TierKeeper. 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 (*TierKeeper) CalculateUSDValue

func (_m *TierKeeper) CalculateUSDValue(ctx types.Context, denom string, amount math.Int) math.LegacyDec

CalculateUSDValue provides a mock function with given fields: ctx, denom, amount

func (*TierKeeper) EXPECT

func (_m *TierKeeper) EXPECT() *TierKeeper_Expecter

func (*TierKeeper) GetMembershipTier

func (_m *TierKeeper) GetMembershipTier(ctx types.Context, user types.AccAddress) (math.LegacyDec, tiertypes.MembershipTier)

GetMembershipTier provides a mock function with given fields: ctx, user

type TierKeeper_CalculateUSDValue_Call

type TierKeeper_CalculateUSDValue_Call struct {
	*mock.Call
}

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

func (*TierKeeper_CalculateUSDValue_Call) Return

func (*TierKeeper_CalculateUSDValue_Call) Run

func (*TierKeeper_CalculateUSDValue_Call) RunAndReturn

type TierKeeper_Expecter

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

func (*TierKeeper_Expecter) CalculateUSDValue

func (_e *TierKeeper_Expecter) CalculateUSDValue(ctx interface{}, denom interface{}, amount interface{}) *TierKeeper_CalculateUSDValue_Call

CalculateUSDValue is a helper method to define mock.On call

  • ctx types.Context
  • denom string
  • amount math.Int

func (*TierKeeper_Expecter) GetMembershipTier

func (_e *TierKeeper_Expecter) GetMembershipTier(ctx interface{}, user interface{}) *TierKeeper_GetMembershipTier_Call

GetMembershipTier is a helper method to define mock.On call

  • ctx types.Context
  • user types.AccAddress

type TierKeeper_GetMembershipTier_Call

type TierKeeper_GetMembershipTier_Call struct {
	*mock.Call
}

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

func (*TierKeeper_GetMembershipTier_Call) Return

func (*TierKeeper_GetMembershipTier_Call) Run

Jump to

Keyboard shortcuts

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