Documentation
¶
Overview ¶
Package testutil is a generated GoMock package.
Index ¶
- Variables
- type MockAccountKeeper
- type MockAccountKeeperMockRecorder
- type MockBankKeeper
- func (m *MockBankKeeper) EXPECT() *MockBankKeeperMockRecorder
- func (m *MockBankKeeper) GetAllBalances(ctx types0.Context, addr types0.AccAddress) types0.Coins
- func (m *MockBankKeeper) MintCoins(ctx types0.Context, moduleName string, amt types0.Coins) error
- func (m *MockBankKeeper) SendCoinsFromModuleToAccount(ctx types0.Context, senderModule string, recipientAddr types0.AccAddress, ...) 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) SendCoinsFromModuleToAccount(ctx, senderModule, recipientAddr, amt interface{}) *gomock.Call
- type MockCometinfo
- type MockCometinfoMockRecorder
- type MockSlashingKeeper
- func (m *MockSlashingKeeper) EXPECT() *MockSlashingKeeperMockRecorder
- func (m *MockSlashingKeeper) GetPubkey(arg0 context.Context, arg1 types.Address) (types.PubKey, error)
- func (m *MockSlashingKeeper) HasValidatorSigningInfo(arg0 context.Context, arg1 types0.ConsAddress) bool
- func (m *MockSlashingKeeper) IsTombstoned(arg0 context.Context, arg1 types0.ConsAddress) bool
- func (m *MockSlashingKeeper) Jail(arg0 context.Context, arg1 types0.ConsAddress) error
- func (m *MockSlashingKeeper) JailUntil(arg0 context.Context, arg1 types0.ConsAddress, arg2 time.Time) error
- func (m *MockSlashingKeeper) Slash(arg0 context.Context, arg1 types0.ConsAddress, arg2 math.LegacyDec, ...) error
- func (m *MockSlashingKeeper) SlashFractionDoubleSign(arg0 context.Context) (math.LegacyDec, error)
- func (m *MockSlashingKeeper) SlashWithInfractionReason(arg0 context.Context, arg1 types0.ConsAddress, arg2 math.LegacyDec, ...) error
- func (m *MockSlashingKeeper) Tombstone(arg0 context.Context, arg1 types0.ConsAddress) error
- type MockSlashingKeeperMockRecorder
- func (mr *MockSlashingKeeperMockRecorder) GetPubkey(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSlashingKeeperMockRecorder) HasValidatorSigningInfo(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSlashingKeeperMockRecorder) IsTombstoned(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSlashingKeeperMockRecorder) Jail(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSlashingKeeperMockRecorder) JailUntil(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockSlashingKeeperMockRecorder) Slash(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockSlashingKeeperMockRecorder) SlashFractionDoubleSign(arg0 interface{}) *gomock.Call
- func (mr *MockSlashingKeeperMockRecorder) SlashWithInfractionReason(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
- func (mr *MockSlashingKeeperMockRecorder) Tombstone(arg0, arg1 interface{}) *gomock.Call
- type MockStakingKeeper
- func (m *MockStakingKeeper) ConsensusAddressCodec() address.Codec
- func (m *MockStakingKeeper) EXPECT() *MockStakingKeeperMockRecorder
- func (m *MockStakingKeeper) GetParams(ctx context.Context) (types1.Params, error)
- func (m *MockStakingKeeper) ValidatorByConsAddr(arg0 context.Context, arg1 types0.ConsAddress) (types1.ValidatorI, error)
- type MockStakingKeeperMockRecorder
Constants ¶
This section is empty.
Variables ¶
var AppConfig = configurator.NewAppConfig( configurator.AuthModule(), configurator.BankModule(), configurator.StakingModule(), configurator.SlashingModule(), configurator.TxModule(), configurator.ConsensusModule(), configurator.ParamsModule(), configurator.EvidenceModule(), configurator.GenutilModule(), )
Functions ¶
This section is empty.
Types ¶
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.
type MockAccountKeeperMockRecorder ¶
type MockAccountKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockAccountKeeperMockRecorder is the mock recorder for MockAccountKeeper.
func (*MockAccountKeeperMockRecorder) SetAccount ¶
func (mr *MockAccountKeeperMockRecorder) SetAccount(ctx, acc 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 types0.Context, addr types0.AccAddress) types0.Coins
GetAllBalances mocks base method.
func (*MockBankKeeper) MintCoins ¶
MintCoins mocks base method.
func (*MockBankKeeper) SendCoinsFromModuleToAccount ¶
func (m *MockBankKeeper) SendCoinsFromModuleToAccount(ctx types0.Context, senderModule string, recipientAddr types0.AccAddress, amt types0.Coins) error
SendCoinsFromModuleToAccount 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) SendCoinsFromModuleToAccount ¶
func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount(ctx, senderModule, recipientAddr, amt interface{}) *gomock.Call
SendCoinsFromModuleToAccount indicates an expected call of SendCoinsFromModuleToAccount.
type MockCometinfo ¶
type MockCometinfo struct {
// contains filtered or unexported fields
}
MockCometinfo is a mock of Cometinfo interface.
func NewMockCometinfo ¶
func NewMockCometinfo(ctrl *gomock.Controller) *MockCometinfo
NewMockCometinfo creates a new mock instance.
func (*MockCometinfo) EXPECT ¶
func (m *MockCometinfo) EXPECT() *MockCometinfoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCometinfoMockRecorder ¶
type MockCometinfoMockRecorder struct {
// contains filtered or unexported fields
}
MockCometinfoMockRecorder is the mock recorder for MockCometinfo.
func (*MockCometinfoMockRecorder) GetCometBlockInfo ¶
func (mr *MockCometinfoMockRecorder) GetCometBlockInfo(arg0 interface{}) *gomock.Call
GetCometBlockInfo indicates an expected call of GetCometBlockInfo.
type MockSlashingKeeper ¶
type MockSlashingKeeper struct {
// contains filtered or unexported fields
}
MockSlashingKeeper is a mock of SlashingKeeper interface.
func NewMockSlashingKeeper ¶
func NewMockSlashingKeeper(ctrl *gomock.Controller) *MockSlashingKeeper
NewMockSlashingKeeper creates a new mock instance.
func (*MockSlashingKeeper) EXPECT ¶
func (m *MockSlashingKeeper) EXPECT() *MockSlashingKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSlashingKeeper) GetPubkey ¶
func (m *MockSlashingKeeper) GetPubkey(arg0 context.Context, arg1 types.Address) (types.PubKey, error)
GetPubkey mocks base method.
func (*MockSlashingKeeper) HasValidatorSigningInfo ¶
func (m *MockSlashingKeeper) HasValidatorSigningInfo(arg0 context.Context, arg1 types0.ConsAddress) bool
HasValidatorSigningInfo mocks base method.
func (*MockSlashingKeeper) IsTombstoned ¶
func (m *MockSlashingKeeper) IsTombstoned(arg0 context.Context, arg1 types0.ConsAddress) bool
IsTombstoned mocks base method.
func (*MockSlashingKeeper) Jail ¶
func (m *MockSlashingKeeper) Jail(arg0 context.Context, arg1 types0.ConsAddress) error
Jail mocks base method.
func (*MockSlashingKeeper) JailUntil ¶
func (m *MockSlashingKeeper) JailUntil(arg0 context.Context, arg1 types0.ConsAddress, arg2 time.Time) error
JailUntil mocks base method.
func (*MockSlashingKeeper) Slash ¶
func (m *MockSlashingKeeper) Slash(arg0 context.Context, arg1 types0.ConsAddress, arg2 math.LegacyDec, arg3, arg4 int64) error
Slash mocks base method.
func (*MockSlashingKeeper) SlashFractionDoubleSign ¶
SlashFractionDoubleSign mocks base method.
func (*MockSlashingKeeper) SlashWithInfractionReason ¶
func (m *MockSlashingKeeper) SlashWithInfractionReason(arg0 context.Context, arg1 types0.ConsAddress, arg2 math.LegacyDec, arg3, arg4 int64, arg5 types1.Infraction) error
SlashWithInfractionReason mocks base method.
func (*MockSlashingKeeper) Tombstone ¶
func (m *MockSlashingKeeper) Tombstone(arg0 context.Context, arg1 types0.ConsAddress) error
Tombstone mocks base method.
type MockSlashingKeeperMockRecorder ¶
type MockSlashingKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockSlashingKeeperMockRecorder is the mock recorder for MockSlashingKeeper.
func (*MockSlashingKeeperMockRecorder) GetPubkey ¶
func (mr *MockSlashingKeeperMockRecorder) GetPubkey(arg0, arg1 interface{}) *gomock.Call
GetPubkey indicates an expected call of GetPubkey.
func (*MockSlashingKeeperMockRecorder) HasValidatorSigningInfo ¶
func (mr *MockSlashingKeeperMockRecorder) HasValidatorSigningInfo(arg0, arg1 interface{}) *gomock.Call
HasValidatorSigningInfo indicates an expected call of HasValidatorSigningInfo.
func (*MockSlashingKeeperMockRecorder) IsTombstoned ¶
func (mr *MockSlashingKeeperMockRecorder) IsTombstoned(arg0, arg1 interface{}) *gomock.Call
IsTombstoned indicates an expected call of IsTombstoned.
func (*MockSlashingKeeperMockRecorder) Jail ¶
func (mr *MockSlashingKeeperMockRecorder) Jail(arg0, arg1 interface{}) *gomock.Call
Jail indicates an expected call of Jail.
func (*MockSlashingKeeperMockRecorder) JailUntil ¶
func (mr *MockSlashingKeeperMockRecorder) JailUntil(arg0, arg1, arg2 interface{}) *gomock.Call
JailUntil indicates an expected call of JailUntil.
func (*MockSlashingKeeperMockRecorder) Slash ¶
func (mr *MockSlashingKeeperMockRecorder) Slash(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
Slash indicates an expected call of Slash.
func (*MockSlashingKeeperMockRecorder) SlashFractionDoubleSign ¶
func (mr *MockSlashingKeeperMockRecorder) SlashFractionDoubleSign(arg0 interface{}) *gomock.Call
SlashFractionDoubleSign indicates an expected call of SlashFractionDoubleSign.
func (*MockSlashingKeeperMockRecorder) SlashWithInfractionReason ¶
func (mr *MockSlashingKeeperMockRecorder) SlashWithInfractionReason(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
SlashWithInfractionReason indicates an expected call of SlashWithInfractionReason.
func (*MockSlashingKeeperMockRecorder) Tombstone ¶
func (mr *MockSlashingKeeperMockRecorder) Tombstone(arg0, arg1 interface{}) *gomock.Call
Tombstone indicates an expected call of Tombstone.
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) ConsensusAddressCodec ¶
func (m *MockStakingKeeper) ConsensusAddressCodec() address.Codec
ConsensusAddressCodec mocks base method.
func (*MockStakingKeeper) EXPECT ¶
func (m *MockStakingKeeper) EXPECT() *MockStakingKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStakingKeeper) GetParams ¶
GetParams mocks base method.
func (*MockStakingKeeper) ValidatorByConsAddr ¶
func (m *MockStakingKeeper) ValidatorByConsAddr(arg0 context.Context, arg1 types0.ConsAddress) (types1.ValidatorI, error)
ValidatorByConsAddr mocks base method.
type MockStakingKeeperMockRecorder ¶
type MockStakingKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockStakingKeeperMockRecorder is the mock recorder for MockStakingKeeper.
func (*MockStakingKeeperMockRecorder) ConsensusAddressCodec ¶
func (mr *MockStakingKeeperMockRecorder) ConsensusAddressCodec() *gomock.Call
ConsensusAddressCodec indicates an expected call of ConsensusAddressCodec.
func (*MockStakingKeeperMockRecorder) GetParams ¶
func (mr *MockStakingKeeperMockRecorder) GetParams(ctx interface{}) *gomock.Call
GetParams indicates an expected call of GetParams.
func (*MockStakingKeeperMockRecorder) ValidatorByConsAddr ¶
func (mr *MockStakingKeeperMockRecorder) ValidatorByConsAddr(arg0, arg1 interface{}) *gomock.Call
ValidatorByConsAddr indicates an expected call of ValidatorByConsAddr.