Help us shape the future of Go! Take the 2026 Go Developer Survey

validatorsmock

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: BSD-3-Clause Imports: 5 Imported by: 1

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) GetChainID

func (m *State) GetChainID(netID ids.ID) (ids.ID, error)

GetChainID mocks base method.

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) GetMinimumHeight

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

GetMinimumHeight mocks base method.

func (*State) GetNetworkID

func (m *State) GetNetworkID(chainID ids.ID) (ids.ID, error)

GetNetworkID 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

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

GetWarpValidatorSet mocks base method.

func (*State) GetWarpValidatorSets

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) GetChainID

func (mr *StateMockRecorder) GetChainID(netID any) *gomock.Call

GetChainID indicates an expected call of GetChainID.

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) GetMinimumHeight

func (mr *StateMockRecorder) GetMinimumHeight(ctx any) *gomock.Call

GetMinimumHeight indicates an expected call of GetMinimumHeight.

func (*StateMockRecorder) GetNetworkID

func (mr *StateMockRecorder) GetNetworkID(chainID any) *gomock.Call

GetNetworkID indicates an expected call of GetNetworkID.

func (*StateMockRecorder) GetValidatorSet

func (mr *StateMockRecorder) GetValidatorSet(ctx, height, netID any) *gomock.Call

GetValidatorSet indicates an expected call of GetValidatorSet.

func (*StateMockRecorder) GetWarpValidatorSet

func (mr *StateMockRecorder) GetWarpValidatorSet(ctx, height, netID any) *gomock.Call

GetWarpValidatorSet indicates an expected call of GetWarpValidatorSet.

func (*StateMockRecorder) GetWarpValidatorSets

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