Documentation
¶
Overview ¶
Package testutil is a generated GoMock package.
Index ¶
- type AccountKeeper
- type BankKeeper
- type MockAccountKeeper
- func (m *MockAccountKeeper) AddressCodec() address.Codec
- func (m *MockAccountKeeper) EXPECT() *MockAccountKeeperMockRecorder
- func (m *MockAccountKeeper) GetAccount(arg0 context.Context, arg1 types0.AccAddress) types0.AccountI
- func (m *MockAccountKeeper) NewAccount(arg0 context.Context, arg1 types0.AccountI) types0.AccountI
- func (m *MockAccountKeeper) RemoveAccount(ctx context.Context, acc types0.AccountI)
- func (m *MockAccountKeeper) SetAccount(arg0 context.Context, arg1 types0.AccountI)
- type MockAccountKeeperMockRecorder
- func (mr *MockAccountKeeperMockRecorder) AddressCodec() *gomock.Call
- func (mr *MockAccountKeeperMockRecorder) GetAccount(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAccountKeeperMockRecorder) NewAccount(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAccountKeeperMockRecorder) RemoveAccount(ctx, acc interface{}) *gomock.Call
- func (mr *MockAccountKeeperMockRecorder) SetAccount(arg0, arg1 interface{}) *gomock.Call
- type MockBankKeeper
- func (m *MockBankKeeper) Burn(arg0 context.Context, arg1 *types.MsgBurn) (*types.MsgBurnResponse, error)
- func (m *MockBankKeeper) EXPECT() *MockBankKeeperMockRecorder
- func (m *MockBankKeeper) GetAllBalances(ctx context.Context, addr types0.AccAddress) types0.Coins
- func (m *MockBankKeeper) MintCoins(ctx context.Context, moduleName string, amt types0.Coins) error
- func (m *MockBankKeeper) MultiSend(arg0 context.Context, arg1 *types.MsgMultiSend) (*types.MsgMultiSendResponse, error)
- func (m *MockBankKeeper) Send(arg0 context.Context, arg1 *types.MsgSend) (*types.MsgSendResponse, error)
- func (m *MockBankKeeper) SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr types0.AccAddress, ...) error
- func (m *MockBankKeeper) SendCoinsFromModuleToModule(ctx context.Context, senderModule, recipientModule string, amt types0.Coins) error
- func (m *MockBankKeeper) SetSendEnabled(arg0 context.Context, arg1 *types.MsgSetSendEnabled) (*types.MsgSetSendEnabledResponse, error)
- func (m *MockBankKeeper) SpendableCoins(ctx context.Context, addr types0.AccAddress) types0.Coins
- func (m *MockBankKeeper) UpdateParams(arg0 context.Context, arg1 *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error)
- type MockBankKeeperMockRecorder
- func (mr *MockBankKeeperMockRecorder) Burn(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) GetAllBalances(ctx, addr interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) MintCoins(ctx, moduleName, amt interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) MultiSend(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) Send(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount(ctx, senderModule, recipientAddr, amt interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToModule(ctx, senderModule, recipientModule, amt interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) SetSendEnabled(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) SpendableCoins(ctx, addr interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) UpdateParams(arg0, arg1 interface{}) *gomock.Call
- type MockStakingKeeper
- type MockStakingKeeperMockRecorder
- type StakingKeeper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { AddressCodec() address.Codec // NewAccount returns a new account with the next account number. Does not save the new account to the store. NewAccount(context.Context, sdk.AccountI) sdk.AccountI // GetAccount retrieves an account from the store. GetAccount(context.Context, sdk.AccAddress) sdk.AccountI // SetAccount sets an account in the store. SetAccount(context.Context, sdk.AccountI) // RemoveAccount Remove an account in the store. RemoveAccount(ctx context.Context, acc sdk.AccountI) }
AccountKeeper extends `AccountKeeper` from expected_keepers.
type BankKeeper ¶
type BankKeeper interface { bank.MsgServer SpendableCoins(ctx context.Context, addr sdk.AccAddress) sdk.Coins MintCoins(ctx context.Context, moduleName string, amt sdk.Coins) error SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromModuleToModule(ctx context.Context, senderModule, recipientModule string, amt sdk.Coins) error GetAllBalances(ctx context.Context, addr sdk.AccAddress) sdk.Coins }
BankKeeper extends bank `MsgServer` to mock `Send` and to register handlers in MsgServiceRouter
type MockAccountKeeper ¶
type MockAccountKeeper struct {
// contains filtered or unexported fields
}
MockAccountKeeper is a mock of AccountKeeper interface.
func NewMockAccountKeeper ¶
func NewMockAccountKeeper(ctrl *gomock.Controller) *MockAccountKeeper
NewMockAccountKeeper creates a new mock instance.
func (*MockAccountKeeper) AddressCodec ¶
func (m *MockAccountKeeper) AddressCodec() address.Codec
AddressCodec mocks base method.
func (*MockAccountKeeper) EXPECT ¶
func (m *MockAccountKeeper) EXPECT() *MockAccountKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAccountKeeper) GetAccount ¶
func (m *MockAccountKeeper) GetAccount(arg0 context.Context, arg1 types0.AccAddress) types0.AccountI
GetAccount mocks base method.
func (*MockAccountKeeper) NewAccount ¶
NewAccount mocks base method.
func (*MockAccountKeeper) RemoveAccount ¶
func (m *MockAccountKeeper) RemoveAccount(ctx context.Context, acc types0.AccountI)
RemoveAccount mocks base method.
func (*MockAccountKeeper) SetAccount ¶
func (m *MockAccountKeeper) SetAccount(arg0 context.Context, arg1 types0.AccountI)
SetAccount mocks base method.
type MockAccountKeeperMockRecorder ¶
type MockAccountKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockAccountKeeperMockRecorder is the mock recorder for MockAccountKeeper.
func (*MockAccountKeeperMockRecorder) AddressCodec ¶
func (mr *MockAccountKeeperMockRecorder) AddressCodec() *gomock.Call
AddressCodec indicates an expected call of AddressCodec.
func (*MockAccountKeeperMockRecorder) GetAccount ¶
func (mr *MockAccountKeeperMockRecorder) GetAccount(arg0, arg1 interface{}) *gomock.Call
GetAccount indicates an expected call of GetAccount.
func (*MockAccountKeeperMockRecorder) NewAccount ¶
func (mr *MockAccountKeeperMockRecorder) NewAccount(arg0, arg1 interface{}) *gomock.Call
NewAccount indicates an expected call of NewAccount.
func (*MockAccountKeeperMockRecorder) RemoveAccount ¶
func (mr *MockAccountKeeperMockRecorder) RemoveAccount(ctx, acc interface{}) *gomock.Call
RemoveAccount indicates an expected call of RemoveAccount.
func (*MockAccountKeeperMockRecorder) SetAccount ¶
func (mr *MockAccountKeeperMockRecorder) SetAccount(arg0, arg1 interface{}) *gomock.Call
SetAccount indicates an expected call of SetAccount.
type MockBankKeeper ¶
type MockBankKeeper struct {
// contains filtered or unexported fields
}
MockBankKeeper is a mock of BankKeeper interface.
func NewMockBankKeeper ¶
func NewMockBankKeeper(ctrl *gomock.Controller) *MockBankKeeper
NewMockBankKeeper creates a new mock instance.
func (*MockBankKeeper) Burn ¶
func (m *MockBankKeeper) Burn(arg0 context.Context, arg1 *types.MsgBurn) (*types.MsgBurnResponse, error)
Burn mocks base method.
func (*MockBankKeeper) EXPECT ¶
func (m *MockBankKeeper) EXPECT() *MockBankKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBankKeeper) GetAllBalances ¶
func (m *MockBankKeeper) GetAllBalances(ctx context.Context, addr types0.AccAddress) types0.Coins
GetAllBalances mocks base method.
func (*MockBankKeeper) MultiSend ¶
func (m *MockBankKeeper) MultiSend(arg0 context.Context, arg1 *types.MsgMultiSend) (*types.MsgMultiSendResponse, error)
MultiSend mocks base method.
func (*MockBankKeeper) Send ¶
func (m *MockBankKeeper) Send(arg0 context.Context, arg1 *types.MsgSend) (*types.MsgSendResponse, error)
Send mocks base method.
func (*MockBankKeeper) SendCoinsFromModuleToAccount ¶
func (m *MockBankKeeper) SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr types0.AccAddress, amt types0.Coins) error
SendCoinsFromModuleToAccount mocks base method.
func (*MockBankKeeper) SendCoinsFromModuleToModule ¶
func (m *MockBankKeeper) SendCoinsFromModuleToModule(ctx context.Context, senderModule, recipientModule string, amt types0.Coins) error
SendCoinsFromModuleToModule mocks base method.
func (*MockBankKeeper) SetSendEnabled ¶
func (m *MockBankKeeper) SetSendEnabled(arg0 context.Context, arg1 *types.MsgSetSendEnabled) (*types.MsgSetSendEnabledResponse, error)
SetSendEnabled mocks base method.
func (*MockBankKeeper) SpendableCoins ¶
func (m *MockBankKeeper) SpendableCoins(ctx context.Context, addr types0.AccAddress) types0.Coins
SpendableCoins mocks base method.
func (*MockBankKeeper) UpdateParams ¶
func (m *MockBankKeeper) UpdateParams(arg0 context.Context, arg1 *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error)
UpdateParams mocks base method.
type MockBankKeeperMockRecorder ¶
type MockBankKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockBankKeeperMockRecorder is the mock recorder for MockBankKeeper.
func (*MockBankKeeperMockRecorder) Burn ¶
func (mr *MockBankKeeperMockRecorder) Burn(arg0, arg1 interface{}) *gomock.Call
Burn indicates an expected call of Burn.
func (*MockBankKeeperMockRecorder) GetAllBalances ¶
func (mr *MockBankKeeperMockRecorder) GetAllBalances(ctx, addr interface{}) *gomock.Call
GetAllBalances indicates an expected call of GetAllBalances.
func (*MockBankKeeperMockRecorder) MintCoins ¶
func (mr *MockBankKeeperMockRecorder) MintCoins(ctx, moduleName, amt interface{}) *gomock.Call
MintCoins indicates an expected call of MintCoins.
func (*MockBankKeeperMockRecorder) MultiSend ¶
func (mr *MockBankKeeperMockRecorder) MultiSend(arg0, arg1 interface{}) *gomock.Call
MultiSend indicates an expected call of MultiSend.
func (*MockBankKeeperMockRecorder) Send ¶
func (mr *MockBankKeeperMockRecorder) Send(arg0, arg1 interface{}) *gomock.Call
Send indicates an expected call of Send.
func (*MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount ¶
func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount(ctx, senderModule, recipientAddr, amt interface{}) *gomock.Call
SendCoinsFromModuleToAccount indicates an expected call of SendCoinsFromModuleToAccount.
func (*MockBankKeeperMockRecorder) SendCoinsFromModuleToModule ¶
func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToModule(ctx, senderModule, recipientModule, amt interface{}) *gomock.Call
SendCoinsFromModuleToModule indicates an expected call of SendCoinsFromModuleToModule.
func (*MockBankKeeperMockRecorder) SetSendEnabled ¶
func (mr *MockBankKeeperMockRecorder) SetSendEnabled(arg0, arg1 interface{}) *gomock.Call
SetSendEnabled indicates an expected call of SetSendEnabled.
func (*MockBankKeeperMockRecorder) SpendableCoins ¶
func (mr *MockBankKeeperMockRecorder) SpendableCoins(ctx, addr interface{}) *gomock.Call
SpendableCoins indicates an expected call of SpendableCoins.
func (*MockBankKeeperMockRecorder) UpdateParams ¶
func (mr *MockBankKeeperMockRecorder) UpdateParams(arg0, arg1 interface{}) *gomock.Call
UpdateParams indicates an expected call of UpdateParams.
type MockStakingKeeper ¶
type MockStakingKeeper struct {
// contains filtered or unexported fields
}
MockStakingKeeper is a mock of StakingKeeper interface.
func NewMockStakingKeeper ¶
func NewMockStakingKeeper(ctrl *gomock.Controller) *MockStakingKeeper
NewMockStakingKeeper creates a new mock instance.
func (*MockStakingKeeper) BondDenom ¶
func (m *MockStakingKeeper) BondDenom(ctx context.Context) (string, error)
BondDenom mocks base method.
func (*MockStakingKeeper) EXPECT ¶
func (m *MockStakingKeeper) EXPECT() *MockStakingKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockStakingKeeperMockRecorder ¶
type MockStakingKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockStakingKeeperMockRecorder is the mock recorder for MockStakingKeeper.
func (*MockStakingKeeperMockRecorder) BondDenom ¶
func (mr *MockStakingKeeperMockRecorder) BondDenom(ctx interface{}) *gomock.Call
BondDenom indicates an expected call of BondDenom.