validatorsmock

package
v1.22.41 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package validatorsmock is a generated GoMock package.

Index

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 NewState

func NewState(ctrl *gomock.Controller) *State

NewState creates a new mock instance.

func (*State) EXPECT

func (m *State) EXPECT() *StateMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*State) GetCurrentHeight

func (m *State) GetCurrentHeight(ctx context.Context) (uint64, error)

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.

func (*State) GetWarpValidatorSet added in v1.21.3

func (m *State) GetWarpValidatorSet(ctx context.Context, height uint64, netID ids.ID) (*validators.WarpSet, error)

GetWarpValidatorSet mocks base method.

func (*State) GetWarpValidatorSets added in v1.21.3

func (m *State) GetWarpValidatorSets(ctx context.Context, heights []uint64, netIDs []ids.ID) (map[ids.ID]map[uint64]*validators.WarpSet, error)

GetWarpValidatorSets 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL