validatorsmock

package
v1.13.4-lux.18-chain Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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(arg0 context.Context) (uint64, error)

GetCurrentHeight mocks base method.

func (*State) GetCurrentValidatorSet

func (m *State) GetCurrentValidatorSet(ctx context.Context, subnetID ids.ID) (map[ids.ID]*validators.GetCurrentValidatorOutput, uint64, error)

GetCurrentValidatorSet mocks base method.

func (*State) GetMinimumHeight

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

GetMinimumHeight mocks base method.

func (*State) GetSubnetID

func (m *State) GetSubnetID(ctx context.Context, chainID ids.ID) (ids.ID, error)

GetSubnetID mocks base method.

func (*State) GetValidatorSet

func (m *State) GetValidatorSet(ctx context.Context, height uint64, subnetID 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(arg0 any) *gomock.Call

GetCurrentHeight indicates an expected call of GetCurrentHeight.

func (*StateMockRecorder) GetCurrentValidatorSet

func (mr *StateMockRecorder) GetCurrentValidatorSet(ctx, subnetID any) *gomock.Call

GetCurrentValidatorSet indicates an expected call of GetCurrentValidatorSet.

func (*StateMockRecorder) GetMinimumHeight

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

GetMinimumHeight indicates an expected call of GetMinimumHeight.

func (*StateMockRecorder) GetSubnetID

func (mr *StateMockRecorder) GetSubnetID(ctx, chainID any) *gomock.Call

GetSubnetID indicates an expected call of GetSubnetID.

func (*StateMockRecorder) GetValidatorSet

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

GetValidatorSet indicates an expected call of GetValidatorSet.

Jump to

Keyboard shortcuts

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