mocks

package
v0.47.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 5 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) 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) 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_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, string, uint64)

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

func (*TierKeeper_GetMembershipTier_Call) RunAndReturn

Jump to

Keyboard shortcuts

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