Documentation ¶
Overview ¶
Package testutil is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainNamer ¶
type MockChainNamer ¶
type MockChainNamer struct {
// contains filtered or unexported fields
}
MockChainNamer is a mock of ChainNamer interface.
func NewMockChainNamer ¶
func NewMockChainNamer(ctrl *gomock.Controller) *MockChainNamer
NewMockChainNamer creates a new mock instance.
func (*MockChainNamer) ChainName ¶
func (m *MockChainNamer) ChainName(chainID uint64) string
ChainName mocks base method.
func (*MockChainNamer) EXPECT ¶
func (m *MockChainNamer) EXPECT() *MockChainNamerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockChainNamerMockRecorder ¶
type MockChainNamerMockRecorder struct {
// contains filtered or unexported fields
}
MockChainNamerMockRecorder is the mock recorder for MockChainNamer.
type MockCommetAPI ¶ added in v0.1.0
type MockCommetAPI struct {
// contains filtered or unexported fields
}
MockCommetAPI is a mock of CommetAPI interface.
func NewMockCommetAPI ¶ added in v0.1.0
func NewMockCommetAPI(ctrl *gomock.Controller) *MockCommetAPI
NewMockCommetAPI creates a new mock instance.
func (*MockCommetAPI) EXPECT ¶ added in v0.1.0
func (m *MockCommetAPI) EXPECT() *MockCommetAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCommetAPI) Validators ¶ added in v0.1.0
func (m *MockCommetAPI) Validators(ctx context.Context, height int64) (*types.ValidatorSet, bool, error)
Validators mocks base method.
type MockCommetAPIMockRecorder ¶ added in v0.1.0
type MockCommetAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockCommetAPIMockRecorder is the mock recorder for MockCommetAPI.
func (*MockCommetAPIMockRecorder) Validators ¶ added in v0.1.0
func (mr *MockCommetAPIMockRecorder) Validators(ctx, height any) *gomock.Call
Validators indicates an expected call of Validators.
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) EXPECT ¶
func (m *MockStakingKeeper) EXPECT() *MockStakingKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStakingKeeper) GetPubKeyByConsAddr ¶
func (m *MockStakingKeeper) GetPubKeyByConsAddr(arg0 context.Context, arg1 types0.ConsAddress) (crypto.PublicKey, error)
GetPubKeyByConsAddr mocks base method.
type MockStakingKeeperMockRecorder ¶
type MockStakingKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockStakingKeeperMockRecorder is the mock recorder for MockStakingKeeper.
func (*MockStakingKeeperMockRecorder) GetPubKeyByConsAddr ¶
func (mr *MockStakingKeeperMockRecorder) GetPubKeyByConsAddr(arg0, arg1 any) *gomock.Call
GetPubKeyByConsAddr indicates an expected call of GetPubKeyByConsAddr.
type MockVoter ¶
type MockVoter struct {
// contains filtered or unexported fields
}
MockVoter is a mock of Voter interface.
func NewMockVoter ¶
func NewMockVoter(ctrl *gomock.Controller) *MockVoter
NewMockVoter creates a new mock instance.
func (*MockVoter) EXPECT ¶
func (m *MockVoter) EXPECT() *MockVoterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockVoter) GetAvailable ¶
GetAvailable mocks base method.
func (*MockVoter) LocalAddress ¶
LocalAddress mocks base method.
func (*MockVoter) SetCommitted ¶
func (m *MockVoter) SetCommitted(headers []*types1.BlockHeader) error
SetCommitted mocks base method.
func (*MockVoter) SetProposed ¶
func (m *MockVoter) SetProposed(headers []*types1.BlockHeader) error
SetProposed mocks base method.
type MockVoterMockRecorder ¶
type MockVoterMockRecorder struct {
// contains filtered or unexported fields
}
MockVoterMockRecorder is the mock recorder for MockVoter.
func (*MockVoterMockRecorder) GetAvailable ¶
func (mr *MockVoterMockRecorder) GetAvailable() *gomock.Call
GetAvailable indicates an expected call of GetAvailable.
func (*MockVoterMockRecorder) LocalAddress ¶
func (mr *MockVoterMockRecorder) LocalAddress() *gomock.Call
LocalAddress indicates an expected call of LocalAddress.
func (*MockVoterMockRecorder) SetCommitted ¶
func (mr *MockVoterMockRecorder) SetCommitted(headers any) *gomock.Call
SetCommitted indicates an expected call of SetCommitted.
func (*MockVoterMockRecorder) SetProposed ¶
func (mr *MockVoterMockRecorder) SetProposed(headers any) *gomock.Call
SetProposed indicates an expected call of SetProposed.
type StakingKeeper ¶
type StakingKeeper interface { baseapp.ValidatorStore }