Documentation ¶
Overview ¶
Package testutil is a generated GoMock package.
Index ¶
- Variables
- type AccountKeeper
- type BankKeeper
- type MockAccountKeeper
- func (m *MockAccountKeeper) EXPECT() *MockAccountKeeperMockRecorder
- func (m *MockAccountKeeper) GetAccount(arg0 types.Context, arg1 types.AccAddress) types.AccountI
- func (m *MockAccountKeeper) NewAccount(arg0 types.Context, arg1 types.AccountI) types.AccountI
- func (m *MockAccountKeeper) RemoveAccount(ctx types.Context, acc types.AccountI)
- func (m *MockAccountKeeper) SetAccount(arg0 types.Context, arg1 types.AccountI)
- type MockAccountKeeperMockRecorder
- 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) EXPECT() *MockBankKeeperMockRecorder
- func (m *MockBankKeeper) GetAllBalances(ctx types.Context, addr types.AccAddress) types.Coins
- func (m *MockBankKeeper) MintCoins(ctx types.Context, moduleName string, amt types.Coins) error
- func (m *MockBankKeeper) MultiSend(arg0 context.Context, arg1 *types0.MsgMultiSend) (*types0.MsgMultiSendResponse, error)
- func (m *MockBankKeeper) Send(arg0 context.Context, arg1 *types0.MsgSend) (*types0.MsgSendResponse, error)
- func (m *MockBankKeeper) SendCoinsFromModuleToAccount(ctx types.Context, senderModule string, recipientAddr types.AccAddress, ...) error
- func (m *MockBankKeeper) SetSendEnabled(arg0 context.Context, arg1 *types0.MsgSetSendEnabled) (*types0.MsgSetSendEnabledResponse, error)
- func (m *MockBankKeeper) SpendableCoins(ctx types.Context, addr types.AccAddress) types.Coins
- func (m *MockBankKeeper) UpdateParams(arg0 context.Context, arg1 *types0.MsgUpdateParams) (*types0.MsgUpdateParamsResponse, error)
- type MockBankKeeperMockRecorder
- 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) SetSendEnabled(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) SpendableCoins(ctx, addr interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) UpdateParams(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
var AppConfig = appconfig.Compose(&appv1alpha1.Config{ Modules: []*appv1alpha1.ModuleConfig{ { Name: "runtime", Config: appconfig.WrapAny(&runtimev1alpha1.Module{ AppName: "GroupApp", BeginBlockers: []string{ minttypes.ModuleName, stakingtypes.ModuleName, genutiltypes.ModuleName, }, EndBlockers: []string{ stakingtypes.ModuleName, genutiltypes.ModuleName, group.ModuleName, }, InitGenesis: []string{ authtypes.ModuleName, banktypes.ModuleName, stakingtypes.ModuleName, minttypes.ModuleName, genutiltypes.ModuleName, group.ModuleName, paramstypes.ModuleName, consensustypes.ModuleName, }, }), }, { Name: authtypes.ModuleName, Config: appconfig.WrapAny(&authmodulev1.Module{ Bech32Prefix: "cosmos", ModuleAccountPermissions: []*authmodulev1.ModuleAccountPermission{ {Account: authtypes.FeeCollectorName}, {Account: minttypes.ModuleName, Permissions: []string{authtypes.Minter}}, {Account: stakingtypes.BondedPoolName, Permissions: []string{authtypes.Burner, stakingtypes.ModuleName}}, {Account: stakingtypes.NotBondedPoolName, Permissions: []string{authtypes.Burner, stakingtypes.ModuleName}}, }, }), }, { Name: banktypes.ModuleName, Config: appconfig.WrapAny(&bankmodulev1.Module{}), }, { Name: stakingtypes.ModuleName, Config: appconfig.WrapAny(&stakingmodulev1.Module{}), }, { Name: paramstypes.ModuleName, Config: appconfig.WrapAny(¶msmodulev1.Module{}), }, { Name: consensustypes.ModuleName, Config: appconfig.WrapAny(&consensusmodulev1.Module{}), }, { Name: "tx", Config: appconfig.WrapAny(&txconfigv1.Config{}), }, { Name: genutiltypes.ModuleName, Config: appconfig.WrapAny(&genutilmodulev1.Module{}), }, { Name: group.ModuleName, Config: appconfig.WrapAny(&groupmodulev1.Module{ MaxExecutionPeriod: durationpb.New(time.Second * 1209600), MaxMetadataLen: 255, }), }, }, })
Functions ¶
This section is empty.
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { group.AccountKeeper }
AccountKeeper extends `AccountKeeper` from expected_keepers.
type BankKeeper ¶
type BankKeeper interface { group.BankKeeper bank.MsgServer MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error GetAllBalances(ctx sdk.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) 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 types.Context, arg1 types.AccAddress) types.AccountI
GetAccount mocks base method.
func (*MockAccountKeeper) NewAccount ¶
NewAccount mocks base method.
func (*MockAccountKeeper) RemoveAccount ¶
func (m *MockAccountKeeper) RemoveAccount(ctx types.Context, acc types.AccountI)
RemoveAccount mocks base method.
func (*MockAccountKeeper) SetAccount ¶
func (m *MockAccountKeeper) SetAccount(arg0 types.Context, arg1 types.AccountI)
SetAccount mocks base method.
type MockAccountKeeperMockRecorder ¶
type MockAccountKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockAccountKeeperMockRecorder is the mock recorder for MockAccountKeeper.
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) 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 types.Context, addr types.AccAddress) types.Coins
GetAllBalances mocks base method.
func (*MockBankKeeper) MultiSend ¶
func (m *MockBankKeeper) MultiSend(arg0 context.Context, arg1 *types0.MsgMultiSend) (*types0.MsgMultiSendResponse, error)
MultiSend mocks base method.
func (*MockBankKeeper) Send ¶
func (m *MockBankKeeper) Send(arg0 context.Context, arg1 *types0.MsgSend) (*types0.MsgSendResponse, error)
Send mocks base method.
func (*MockBankKeeper) SendCoinsFromModuleToAccount ¶
func (m *MockBankKeeper) SendCoinsFromModuleToAccount(ctx types.Context, senderModule string, recipientAddr types.AccAddress, amt types.Coins) error
SendCoinsFromModuleToAccount mocks base method.
func (*MockBankKeeper) SetSendEnabled ¶
func (m *MockBankKeeper) SetSendEnabled(arg0 context.Context, arg1 *types0.MsgSetSendEnabled) (*types0.MsgSetSendEnabledResponse, error)
SetSendEnabled mocks base method.
func (*MockBankKeeper) SpendableCoins ¶
func (m *MockBankKeeper) SpendableCoins(ctx types.Context, addr types.AccAddress) types.Coins
SpendableCoins mocks base method.
func (*MockBankKeeper) UpdateParams ¶
func (m *MockBankKeeper) UpdateParams(arg0 context.Context, arg1 *types0.MsgUpdateParams) (*types0.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) 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) 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.