Documentation
¶
Overview ¶
Package testutil is a generated GoMock package.
Index ¶
- type ChainNamer
- type MockChainNamer
- type MockChainNamerMockRecorder
- type MockRegistry
- type MockRegistryMockRecorder
- type MockStakingKeeper
- type MockStakingKeeperMockRecorder
- type MockValProvider
- func (m *MockValProvider) ActiveSetByHeight(ctx context.Context, height uint64) (*types1.ValidatorSetResponse, error)
- func (m *MockValProvider) EXPECT() *MockValProviderMockRecorder
- func (m *MockValProvider) ValidatorSet(ctx context.Context, req *types1.ValidatorSetRequest) (*types1.ValidatorSetResponse, error)
- type MockValProviderMockRecorder
- type MockVoter
- func (m *MockVoter) EXPECT() *MockVoterMockRecorder
- func (m *MockVoter) GetAvailable() []*types0.Vote
- func (m *MockVoter) LocalAddress() common.Address
- func (m *MockVoter) SetCommitted(ctx context.Context, headers []*types0.AttestHeader) error
- func (m *MockVoter) SetProposed(ctx context.Context, headers []*types0.AttestHeader) error
- func (m *MockVoter) TrimBehind(minsByChain map[xchain.ChainVersion]uint64) int
- func (m *MockVoter) UpdateValidatorSet(set *types1.ValidatorSetResponse) error
- type MockVoterMockRecorder
- func (mr *MockVoterMockRecorder) GetAvailable() *gomock.Call
- func (mr *MockVoterMockRecorder) LocalAddress() *gomock.Call
- func (mr *MockVoterMockRecorder) SetCommitted(ctx, headers any) *gomock.Call
- func (mr *MockVoterMockRecorder) SetProposed(ctx, headers any) *gomock.Call
- func (mr *MockVoterMockRecorder) TrimBehind(minsByChain any) *gomock.Call
- func (mr *MockVoterMockRecorder) UpdateValidatorSet(set any) *gomock.Call
- type Registry
- type StakingKeeper
- type ValProvider
- type Voter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainNamer ¶
type ChainNamer interface {
ChainName(chainVer xchain.ChainVersion) string
}
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(chainVer xchain.ChainVersion) 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 MockRegistry ¶
type MockRegistry struct {
// contains filtered or unexported fields
}
MockRegistry is a mock of Registry interface.
func NewMockRegistry ¶
func NewMockRegistry(ctrl *gomock.Controller) *MockRegistry
NewMockRegistry creates a new mock instance.
func (*MockRegistry) ConfLevels ¶
ConfLevels mocks base method.
func (*MockRegistry) EXPECT ¶
func (m *MockRegistry) EXPECT() *MockRegistryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRegistryMockRecorder ¶
type MockRegistryMockRecorder struct {
// contains filtered or unexported fields
}
MockRegistryMockRecorder is the mock recorder for MockRegistry.
func (*MockRegistryMockRecorder) ConfLevels ¶
func (mr *MockRegistryMockRecorder) ConfLevels(ctx any) *gomock.Call
ConfLevels indicates an expected call of ConfLevels.
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 types.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 MockValProvider ¶
type MockValProvider struct {
// contains filtered or unexported fields
}
MockValProvider is a mock of ValProvider interface.
func NewMockValProvider ¶
func NewMockValProvider(ctrl *gomock.Controller) *MockValProvider
NewMockValProvider creates a new mock instance.
func (*MockValProvider) ActiveSetByHeight ¶
func (m *MockValProvider) ActiveSetByHeight(ctx context.Context, height uint64) (*types1.ValidatorSetResponse, error)
ActiveSetByHeight mocks base method.
func (*MockValProvider) EXPECT ¶
func (m *MockValProvider) EXPECT() *MockValProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockValProvider) ValidatorSet ¶
func (m *MockValProvider) ValidatorSet(ctx context.Context, req *types1.ValidatorSetRequest) (*types1.ValidatorSetResponse, error)
ValidatorSet mocks base method.
type MockValProviderMockRecorder ¶
type MockValProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockValProviderMockRecorder is the mock recorder for MockValProvider.
func (*MockValProviderMockRecorder) ActiveSetByHeight ¶
func (mr *MockValProviderMockRecorder) ActiveSetByHeight(ctx, height any) *gomock.Call
ActiveSetByHeight indicates an expected call of ActiveSetByHeight.
func (*MockValProviderMockRecorder) ValidatorSet ¶
func (mr *MockValProviderMockRecorder) ValidatorSet(ctx, req any) *gomock.Call
ValidatorSet indicates an expected call of ValidatorSet.
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 ¶
SetCommitted mocks base method.
func (*MockVoter) SetProposed ¶
SetProposed mocks base method.
func (*MockVoter) TrimBehind ¶
func (m *MockVoter) TrimBehind(minsByChain map[xchain.ChainVersion]uint64) int
TrimBehind mocks base method.
func (*MockVoter) UpdateValidatorSet ¶
func (m *MockVoter) UpdateValidatorSet(set *types1.ValidatorSetResponse) error
UpdateValidatorSet 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(ctx, headers any) *gomock.Call
SetCommitted indicates an expected call of SetCommitted.
func (*MockVoterMockRecorder) SetProposed ¶
func (mr *MockVoterMockRecorder) SetProposed(ctx, headers any) *gomock.Call
SetProposed indicates an expected call of SetProposed.
func (*MockVoterMockRecorder) TrimBehind ¶
func (mr *MockVoterMockRecorder) TrimBehind(minsByChain any) *gomock.Call
TrimBehind indicates an expected call of TrimBehind.
func (*MockVoterMockRecorder) UpdateValidatorSet ¶
func (mr *MockVoterMockRecorder) UpdateValidatorSet(set any) *gomock.Call
UpdateValidatorSet indicates an expected call of UpdateValidatorSet.
type Registry ¶
type Registry interface { rtypes.PortalRegistry }
type StakingKeeper ¶
type StakingKeeper interface { baseapp.ValidatorStore }
type ValProvider ¶
type ValProvider interface { vtypes.ValidatorProvider }