Documentation
¶
Overview ¶
Package validatorsmock is a generated GoMock package.
Index ¶
- type State
- func (m *State) EXPECT() *StateMockRecorder
- func (m *State) GetCurrentHeight(ctx context.Context) (uint64, error)
- func (m *State) GetCurrentValidators(ctx context.Context, height uint64, netID ids.ID) (map[ids.NodeID]*validators.GetValidatorOutput, error)
- func (m *State) GetValidatorSet(ctx context.Context, height uint64, netID ids.ID) (map[ids.NodeID]*validators.GetValidatorOutput, error)
- func (m *State) GetWarpValidatorSet(ctx context.Context, height uint64, netID ids.ID) (*validators.WarpSet, error)
- func (m *State) GetWarpValidatorSets(ctx context.Context, heights []uint64, netIDs []ids.ID) (map[ids.ID]map[uint64]*validators.WarpSet, error)
- type StateMockRecorder
- func (mr *StateMockRecorder) GetCurrentHeight(ctx any) *gomock.Call
- func (mr *StateMockRecorder) GetCurrentValidators(ctx, height, netID any) *gomock.Call
- func (mr *StateMockRecorder) GetValidatorSet(ctx, height, netID any) *gomock.Call
- func (mr *StateMockRecorder) GetWarpValidatorSet(ctx, height, netID any) *gomock.Call
- func (mr *StateMockRecorder) GetWarpValidatorSets(ctx, heights, netIDs any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
type State struct {
// contains filtered or unexported fields
}
State is a mock of State interface.
func (*State) EXPECT ¶
func (m *State) EXPECT() *StateMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*State) GetCurrentHeight ¶
GetCurrentHeight mocks base method.
func (*State) GetCurrentValidators ¶
func (m *State) GetCurrentValidators(ctx context.Context, height uint64, netID ids.ID) (map[ids.NodeID]*validators.GetValidatorOutput, error)
GetCurrentValidators mocks base method.
func (*State) GetValidatorSet ¶
func (m *State) GetValidatorSet(ctx context.Context, height uint64, netID ids.ID) (map[ids.NodeID]*validators.GetValidatorOutput, error)
GetValidatorSet mocks base method.
type StateMockRecorder ¶
type StateMockRecorder struct {
// contains filtered or unexported fields
}
StateMockRecorder is the mock recorder for State.
func (*StateMockRecorder) GetCurrentHeight ¶
func (mr *StateMockRecorder) GetCurrentHeight(ctx any) *gomock.Call
GetCurrentHeight indicates an expected call of GetCurrentHeight.
func (*StateMockRecorder) GetCurrentValidators ¶
func (mr *StateMockRecorder) GetCurrentValidators(ctx, height, netID any) *gomock.Call
GetCurrentValidators indicates an expected call of GetCurrentValidators.
func (*StateMockRecorder) GetValidatorSet ¶
func (mr *StateMockRecorder) GetValidatorSet(ctx, height, netID any) *gomock.Call
GetValidatorSet indicates an expected call of GetValidatorSet.
func (*StateMockRecorder) GetWarpValidatorSet ¶ added in v1.21.3
func (mr *StateMockRecorder) GetWarpValidatorSet(ctx, height, netID any) *gomock.Call
GetWarpValidatorSet indicates an expected call of GetWarpValidatorSet.
func (*StateMockRecorder) GetWarpValidatorSets ¶ added in v1.21.3
func (mr *StateMockRecorder) GetWarpValidatorSets(ctx, heights, netIDs any) *gomock.Call
GetWarpValidatorSets indicates an expected call of GetWarpValidatorSets.