mocks

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BankKeeper

type BankKeeper struct {
	mock.Mock
}

BankKeeper is an autogenerated mock type for the BankKeeper type

func NewBankKeeper

func NewBankKeeper(t interface {
	mock.TestingT
	Cleanup(func())
}) *BankKeeper

NewBankKeeper creates a new instance of BankKeeper. 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 (*BankKeeper) BlockedAddr

func (_m *BankKeeper) BlockedAddr(addr types.AccAddress) bool

BlockedAddr provides a mock function with given fields: addr

func (*BankKeeper) EXPECT

func (_m *BankKeeper) EXPECT() *BankKeeper_Expecter

func (*BankKeeper) GetAllBalances

func (_m *BankKeeper) GetAllBalances(goCtx context.Context, addr types.AccAddress) types.Coins

GetAllBalances provides a mock function with given fields: goCtx, addr

func (*BankKeeper) GetBalance

func (_m *BankKeeper) GetBalance(goCtx context.Context, addr types.AccAddress, denom string) types.Coin

GetBalance provides a mock function with given fields: goCtx, addr, denom

func (*BankKeeper) HasBalance

func (_m *BankKeeper) HasBalance(goCtx context.Context, addr types.AccAddress, amt types.Coin) bool

HasBalance provides a mock function with given fields: goCtx, addr, amt

func (*BankKeeper) SendCoins

func (_m *BankKeeper) SendCoins(goCtx context.Context, fromAddr types.AccAddress, toAddr types.AccAddress, amt types.Coins) error

SendCoins provides a mock function with given fields: goCtx, fromAddr, toAddr, amt

func (*BankKeeper) SendCoinsFromAccountToModule

func (_m *BankKeeper) SendCoinsFromAccountToModule(goCtx context.Context, senderAddr types.AccAddress, recipientModule string, amt types.Coins) error

SendCoinsFromAccountToModule provides a mock function with given fields: goCtx, senderAddr, recipientModule, amt

func (*BankKeeper) SendCoinsFromModuleToAccount

func (_m *BankKeeper) SendCoinsFromModuleToAccount(goCtx context.Context, senderModule string, recipientAddr types.AccAddress, amt types.Coins) error

SendCoinsFromModuleToAccount provides a mock function with given fields: goCtx, senderModule, recipientAddr, amt

func (*BankKeeper) SendCoinsFromModuleToModule

func (_m *BankKeeper) SendCoinsFromModuleToModule(goCtx context.Context, senderModule string, recipientModule string, amt types.Coins) error

SendCoinsFromModuleToModule provides a mock function with given fields: goCtx, senderModule, recipientModule, amt

func (*BankKeeper) SpendableCoins

func (_m *BankKeeper) SpendableCoins(goCtx context.Context, addr types.AccAddress) types.Coins

SpendableCoins provides a mock function with given fields: goCtx, addr

type BankKeeper_BlockedAddr_Call

type BankKeeper_BlockedAddr_Call struct {
	*mock.Call
}

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

func (*BankKeeper_BlockedAddr_Call) Return

func (*BankKeeper_BlockedAddr_Call) Run

func (*BankKeeper_BlockedAddr_Call) RunAndReturn

type BankKeeper_Expecter

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

func (*BankKeeper_Expecter) BlockedAddr

func (_e *BankKeeper_Expecter) BlockedAddr(addr interface{}) *BankKeeper_BlockedAddr_Call

BlockedAddr is a helper method to define mock.On call

  • addr types.AccAddress

func (*BankKeeper_Expecter) GetAllBalances

func (_e *BankKeeper_Expecter) GetAllBalances(goCtx interface{}, addr interface{}) *BankKeeper_GetAllBalances_Call

GetAllBalances is a helper method to define mock.On call

  • goCtx context.Context
  • addr types.AccAddress

func (*BankKeeper_Expecter) GetBalance

func (_e *BankKeeper_Expecter) GetBalance(goCtx interface{}, addr interface{}, denom interface{}) *BankKeeper_GetBalance_Call

GetBalance is a helper method to define mock.On call

  • goCtx context.Context
  • addr types.AccAddress
  • denom string

func (*BankKeeper_Expecter) HasBalance

func (_e *BankKeeper_Expecter) HasBalance(goCtx interface{}, addr interface{}, amt interface{}) *BankKeeper_HasBalance_Call

HasBalance is a helper method to define mock.On call

  • goCtx context.Context
  • addr types.AccAddress
  • amt types.Coin

func (*BankKeeper_Expecter) SendCoins

func (_e *BankKeeper_Expecter) SendCoins(goCtx interface{}, fromAddr interface{}, toAddr interface{}, amt interface{}) *BankKeeper_SendCoins_Call

SendCoins is a helper method to define mock.On call

  • goCtx context.Context
  • fromAddr types.AccAddress
  • toAddr types.AccAddress
  • amt types.Coins

func (*BankKeeper_Expecter) SendCoinsFromAccountToModule

func (_e *BankKeeper_Expecter) SendCoinsFromAccountToModule(goCtx interface{}, senderAddr interface{}, recipientModule interface{}, amt interface{}) *BankKeeper_SendCoinsFromAccountToModule_Call

SendCoinsFromAccountToModule is a helper method to define mock.On call

  • goCtx context.Context
  • senderAddr types.AccAddress
  • recipientModule string
  • amt types.Coins

func (*BankKeeper_Expecter) SendCoinsFromModuleToAccount

func (_e *BankKeeper_Expecter) SendCoinsFromModuleToAccount(goCtx interface{}, senderModule interface{}, recipientAddr interface{}, amt interface{}) *BankKeeper_SendCoinsFromModuleToAccount_Call

SendCoinsFromModuleToAccount is a helper method to define mock.On call

  • goCtx context.Context
  • senderModule string
  • recipientAddr types.AccAddress
  • amt types.Coins

func (*BankKeeper_Expecter) SendCoinsFromModuleToModule

func (_e *BankKeeper_Expecter) SendCoinsFromModuleToModule(goCtx interface{}, senderModule interface{}, recipientModule interface{}, amt interface{}) *BankKeeper_SendCoinsFromModuleToModule_Call

SendCoinsFromModuleToModule is a helper method to define mock.On call

  • goCtx context.Context
  • senderModule string
  • recipientModule string
  • amt types.Coins

func (*BankKeeper_Expecter) SpendableCoins

func (_e *BankKeeper_Expecter) SpendableCoins(goCtx interface{}, addr interface{}) *BankKeeper_SpendableCoins_Call

SpendableCoins is a helper method to define mock.On call

  • goCtx context.Context
  • addr types.AccAddress

type BankKeeper_GetAllBalances_Call

type BankKeeper_GetAllBalances_Call struct {
	*mock.Call
}

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

func (*BankKeeper_GetAllBalances_Call) Return

func (*BankKeeper_GetAllBalances_Call) Run

func (*BankKeeper_GetAllBalances_Call) RunAndReturn

type BankKeeper_GetBalance_Call

type BankKeeper_GetBalance_Call struct {
	*mock.Call
}

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

func (*BankKeeper_GetBalance_Call) Return

func (*BankKeeper_GetBalance_Call) Run

func (*BankKeeper_GetBalance_Call) RunAndReturn

type BankKeeper_HasBalance_Call

type BankKeeper_HasBalance_Call struct {
	*mock.Call
}

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

func (*BankKeeper_HasBalance_Call) Return

func (*BankKeeper_HasBalance_Call) Run

func (*BankKeeper_HasBalance_Call) RunAndReturn

type BankKeeper_SendCoinsFromAccountToModule_Call

type BankKeeper_SendCoinsFromAccountToModule_Call struct {
	*mock.Call
}

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

func (*BankKeeper_SendCoinsFromAccountToModule_Call) Return

func (*BankKeeper_SendCoinsFromAccountToModule_Call) Run

func (*BankKeeper_SendCoinsFromAccountToModule_Call) RunAndReturn

type BankKeeper_SendCoinsFromModuleToAccount_Call

type BankKeeper_SendCoinsFromModuleToAccount_Call struct {
	*mock.Call
}

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

func (*BankKeeper_SendCoinsFromModuleToAccount_Call) Return

func (*BankKeeper_SendCoinsFromModuleToAccount_Call) Run

func (*BankKeeper_SendCoinsFromModuleToAccount_Call) RunAndReturn

type BankKeeper_SendCoinsFromModuleToModule_Call

type BankKeeper_SendCoinsFromModuleToModule_Call struct {
	*mock.Call
}

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

func (*BankKeeper_SendCoinsFromModuleToModule_Call) Return

func (*BankKeeper_SendCoinsFromModuleToModule_Call) Run

func (*BankKeeper_SendCoinsFromModuleToModule_Call) RunAndReturn

type BankKeeper_SendCoins_Call

type BankKeeper_SendCoins_Call struct {
	*mock.Call
}

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

func (*BankKeeper_SendCoins_Call) Return

func (*BankKeeper_SendCoins_Call) Run

func (*BankKeeper_SendCoins_Call) RunAndReturn

type BankKeeper_SpendableCoins_Call

type BankKeeper_SpendableCoins_Call struct {
	*mock.Call
}

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

func (*BankKeeper_SpendableCoins_Call) Return

func (*BankKeeper_SpendableCoins_Call) Run

func (*BankKeeper_SpendableCoins_Call) RunAndReturn

Jump to

Keyboard shortcuts

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