validatorsmock

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2025 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package validatorsmock is a generated GoMock package.

Package validatorsmock is a generated GoMock package.

Package validatorsmock is a generated GoMock package.

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 Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager is a mock of Manager interface.

func NewManager

func NewManager(ctrl *gomock.Controller) *Manager

NewManager creates a new mock instance.

func (*Manager) Add

func (m *Manager) Add(subnetID ids.ID, arg1 validators.Set) error

Add mocks base method.

func (*Manager) Contains

func (m *Manager) Contains(subnetID ids.ID) bool

Contains mocks base method.

func (*Manager) Count

func (m *Manager) Count() int

Count mocks base method.

func (*Manager) EXPECT

func (m *Manager) EXPECT() *ManagerMockRecorder

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

func (*Manager) Get

func (m *Manager) Get(subnetID ids.ID) (validators.Set, bool)

Get mocks base method.

func (*Manager) GetByWeight

func (m *Manager) GetByWeight(subnetID ids.ID, minWeight uint64) (validators.Set, bool)

GetByWeight mocks base method.

func (*Manager) GetValidator

func (m *Manager) GetValidator(subnetID ids.ID, nodeID ids.NodeID) (*validators.Validator, error)

GetValidator mocks base method.

func (*Manager) GetWeight

func (m *Manager) GetWeight(subnetID ids.ID, nodeID ids.NodeID) uint64

GetWeight mocks base method.

func (*Manager) RecalculateStakes

func (m *Manager) RecalculateStakes(subnetID ids.ID) error

RecalculateStakes mocks base method.

func (*Manager) Remove

func (m *Manager) Remove(subnetID ids.ID) error

Remove mocks base method.

func (*Manager) String

func (m *Manager) String() string

String mocks base method.

func (*Manager) TotalWeight

func (m *Manager) TotalWeight(subnetID ids.ID) (uint64, error)

TotalWeight mocks base method.

type ManagerMockRecorder

type ManagerMockRecorder struct {
	// contains filtered or unexported fields
}

ManagerMockRecorder is the mock recorder for Manager.

func (*ManagerMockRecorder) Add

func (mr *ManagerMockRecorder) Add(subnetID, arg1 any) *gomock.Call

Add indicates an expected call of Add.

func (*ManagerMockRecorder) Contains

func (mr *ManagerMockRecorder) Contains(subnetID any) *gomock.Call

Contains indicates an expected call of Contains.

func (*ManagerMockRecorder) Count

func (mr *ManagerMockRecorder) Count() *gomock.Call

Count indicates an expected call of Count.

func (*ManagerMockRecorder) Get

func (mr *ManagerMockRecorder) Get(subnetID any) *gomock.Call

Get indicates an expected call of Get.

func (*ManagerMockRecorder) GetByWeight

func (mr *ManagerMockRecorder) GetByWeight(subnetID, minWeight any) *gomock.Call

GetByWeight indicates an expected call of GetByWeight.

func (*ManagerMockRecorder) GetValidator

func (mr *ManagerMockRecorder) GetValidator(subnetID, nodeID any) *gomock.Call

GetValidator indicates an expected call of GetValidator.

func (*ManagerMockRecorder) GetWeight

func (mr *ManagerMockRecorder) GetWeight(subnetID, nodeID any) *gomock.Call

GetWeight indicates an expected call of GetWeight.

func (*ManagerMockRecorder) RecalculateStakes

func (mr *ManagerMockRecorder) RecalculateStakes(subnetID any) *gomock.Call

RecalculateStakes indicates an expected call of RecalculateStakes.

func (*ManagerMockRecorder) Remove

func (mr *ManagerMockRecorder) Remove(subnetID any) *gomock.Call

Remove indicates an expected call of Remove.

func (*ManagerMockRecorder) String

func (mr *ManagerMockRecorder) String() *gomock.Call

String indicates an expected call of String.

func (*ManagerMockRecorder) TotalWeight

func (mr *ManagerMockRecorder) TotalWeight(subnetID any) *gomock.Call

TotalWeight indicates an expected call of TotalWeight.

type MockConnector

type MockConnector struct {
	// contains filtered or unexported fields
}

MockConnector is a mock of Connector interface.

func NewMockConnector

func NewMockConnector(ctrl *gomock.Controller) *MockConnector

NewMockConnector creates a new mock instance.

func (*MockConnector) Connected

func (m *MockConnector) Connected(ctx context.Context, nodeID ids.NodeID, nodeVersion *version.Application) error

Connected mocks base method.

func (*MockConnector) Disconnected

func (m *MockConnector) Disconnected(ctx context.Context, nodeID ids.NodeID) error

Disconnected mocks base method.

func (*MockConnector) EXPECT

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

type MockConnectorMockRecorder

type MockConnectorMockRecorder struct {
	// contains filtered or unexported fields
}

MockConnectorMockRecorder is the mock recorder for MockConnector.

func (*MockConnectorMockRecorder) Connected

func (mr *MockConnectorMockRecorder) Connected(ctx, nodeID, nodeVersion any) *gomock.Call

Connected indicates an expected call of Connected.

func (*MockConnectorMockRecorder) Disconnected

func (mr *MockConnectorMockRecorder) Disconnected(ctx, nodeID any) *gomock.Call

Disconnected indicates an expected call of Disconnected.

type MockManager

type MockManager struct {
	// contains filtered or unexported fields
}

MockManager is a mock of Manager interface.

func NewMockManager

func NewMockManager(ctrl *gomock.Controller) *MockManager

NewMockManager creates a new mock instance.

func (*MockManager) Add

func (m *MockManager) Add(subnetID ids.ID, arg1 validators.Set) error

Add mocks base method.

func (*MockManager) AddStaker

func (m *MockManager) AddStaker(subnetID ids.ID, nodeID ids.NodeID, pk *bls.PublicKey, txID ids.ID, weight uint64) error

AddStaker mocks base method.

func (*MockManager) AddWeight

func (m *MockManager) AddWeight(subnetID ids.ID, nodeID ids.NodeID, weight uint64) error

AddWeight mocks base method.

func (*MockManager) Contains

func (m *MockManager) Contains(subnetID ids.ID) bool

Contains mocks base method.

func (*MockManager) Count

func (m *MockManager) Count() int

Count mocks base method.

func (*MockManager) EXPECT

func (m *MockManager) EXPECT() *MockManagerMockRecorder

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

func (*MockManager) Get

func (m *MockManager) Get(subnetID ids.ID) (validators.Set, bool)

Get mocks base method.

func (*MockManager) GetByWeight

func (m *MockManager) GetByWeight(subnetID ids.ID, minWeight uint64) (validators.Set, bool)

GetByWeight mocks base method.

func (*MockManager) GetMap

func (m *MockManager) GetMap(subnetID ids.ID) map[ids.NodeID]*validators.Validator

GetMap mocks base method.

func (*MockManager) GetValidator

func (m *MockManager) GetValidator(subnetID ids.ID, nodeID ids.NodeID) (*validators.Validator, error)

GetValidator mocks base method.

func (*MockManager) GetValidatorIDs

func (m *MockManager) GetValidatorIDs(subnetID ids.ID) []ids.NodeID

GetValidatorIDs mocks base method.

func (*MockManager) GetWeight

func (m *MockManager) GetWeight(subnetID ids.ID, nodeID ids.NodeID) uint64

GetWeight mocks base method.

func (*MockManager) NumSubnets

func (m *MockManager) NumSubnets() int

NumSubnets mocks base method.

func (*MockManager) RecalculateStakes

func (m *MockManager) RecalculateStakes(subnetID ids.ID) error

RecalculateStakes mocks base method.

func (*MockManager) RegisterSetCallbackListener

func (m *MockManager) RegisterSetCallbackListener(subnetID ids.ID, listener validators.SetCallbackListener)

RegisterSetCallbackListener mocks base method.

func (*MockManager) Remove

func (m *MockManager) Remove(subnetID ids.ID) error

Remove mocks base method.

func (*MockManager) RemoveWeight

func (m *MockManager) RemoveWeight(subnetID ids.ID, nodeID ids.NodeID, weight uint64) error

RemoveWeight mocks base method.

func (*MockManager) String

func (m *MockManager) String() string

String mocks base method.

func (*MockManager) TotalWeight

func (m *MockManager) TotalWeight(subnetID ids.ID) (uint64, error)

TotalWeight mocks base method.

type MockManagerMockRecorder

type MockManagerMockRecorder struct {
	// contains filtered or unexported fields
}

MockManagerMockRecorder is the mock recorder for MockManager.

func (*MockManagerMockRecorder) Add

func (mr *MockManagerMockRecorder) Add(subnetID, arg1 any) *gomock.Call

Add indicates an expected call of Add.

func (*MockManagerMockRecorder) AddStaker

func (mr *MockManagerMockRecorder) AddStaker(subnetID, nodeID, pk, txID, weight any) *gomock.Call

AddStaker indicates an expected call of AddStaker.

func (*MockManagerMockRecorder) AddWeight

func (mr *MockManagerMockRecorder) AddWeight(subnetID, nodeID, weight any) *gomock.Call

AddWeight indicates an expected call of AddWeight.

func (*MockManagerMockRecorder) Contains

func (mr *MockManagerMockRecorder) Contains(subnetID any) *gomock.Call

Contains indicates an expected call of Contains.

func (*MockManagerMockRecorder) Count

func (mr *MockManagerMockRecorder) Count() *gomock.Call

Count indicates an expected call of Count.

func (*MockManagerMockRecorder) Get

func (mr *MockManagerMockRecorder) Get(subnetID any) *gomock.Call

Get indicates an expected call of Get.

func (*MockManagerMockRecorder) GetByWeight

func (mr *MockManagerMockRecorder) GetByWeight(subnetID, minWeight any) *gomock.Call

GetByWeight indicates an expected call of GetByWeight.

func (*MockManagerMockRecorder) GetMap

func (mr *MockManagerMockRecorder) GetMap(subnetID any) *gomock.Call

GetMap indicates an expected call of GetMap.

func (*MockManagerMockRecorder) GetValidator

func (mr *MockManagerMockRecorder) GetValidator(subnetID, nodeID any) *gomock.Call

GetValidator indicates an expected call of GetValidator.

func (*MockManagerMockRecorder) GetValidatorIDs

func (mr *MockManagerMockRecorder) GetValidatorIDs(subnetID any) *gomock.Call

GetValidatorIDs indicates an expected call of GetValidatorIDs.

func (*MockManagerMockRecorder) GetWeight

func (mr *MockManagerMockRecorder) GetWeight(subnetID, nodeID any) *gomock.Call

GetWeight indicates an expected call of GetWeight.

func (*MockManagerMockRecorder) NumSubnets

func (mr *MockManagerMockRecorder) NumSubnets() *gomock.Call

NumSubnets indicates an expected call of NumSubnets.

func (*MockManagerMockRecorder) RecalculateStakes

func (mr *MockManagerMockRecorder) RecalculateStakes(subnetID any) *gomock.Call

RecalculateStakes indicates an expected call of RecalculateStakes.

func (*MockManagerMockRecorder) RegisterSetCallbackListener

func (mr *MockManagerMockRecorder) RegisterSetCallbackListener(subnetID, listener any) *gomock.Call

RegisterSetCallbackListener indicates an expected call of RegisterSetCallbackListener.

func (*MockManagerMockRecorder) Remove

func (mr *MockManagerMockRecorder) Remove(subnetID any) *gomock.Call

Remove indicates an expected call of Remove.

func (*MockManagerMockRecorder) RemoveWeight

func (mr *MockManagerMockRecorder) RemoveWeight(subnetID, nodeID, weight any) *gomock.Call

RemoveWeight indicates an expected call of RemoveWeight.

func (*MockManagerMockRecorder) String

func (mr *MockManagerMockRecorder) String() *gomock.Call

String indicates an expected call of String.

func (*MockManagerMockRecorder) TotalWeight

func (mr *MockManagerMockRecorder) TotalWeight(subnetID any) *gomock.Call

TotalWeight indicates an expected call of TotalWeight.

type MockSet

type MockSet struct {
	// contains filtered or unexported fields
}

MockSet is a mock of Set interface.

func NewMockSet

func NewMockSet(ctrl *gomock.Controller) *MockSet

NewMockSet creates a new mock instance.

func (*MockSet) Add

func (m *MockSet) Add(nodeID ids.NodeID, pk []byte, weight uint64) error

Add mocks base method.

func (*MockSet) AddWeight

func (m *MockSet) AddWeight(nodeID ids.NodeID, weight uint64) error

AddWeight mocks base method.

func (*MockSet) Contains

func (m *MockSet) Contains(nodeID ids.NodeID) bool

Contains mocks base method.

func (*MockSet) EXPECT

func (m *MockSet) EXPECT() *MockSetMockRecorder

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

func (*MockSet) Get

func (m *MockSet) Get(nodeID ids.NodeID) (*validators.Validator, bool)

Get mocks base method.

func (*MockSet) GetMap

func (m *MockSet) GetMap() map[ids.NodeID]*validators.Validator

GetMap mocks base method.

func (*MockSet) Len

func (m *MockSet) Len() int

Len mocks base method.

func (*MockSet) List

func (m *MockSet) List() []*validators.Validator

List mocks base method.

func (*MockSet) Remove

func (m *MockSet) Remove(nodeID ids.NodeID) error

Remove mocks base method.

func (*MockSet) RemoveWeight

func (m *MockSet) RemoveWeight(nodeID ids.NodeID, weight uint64) error

RemoveWeight mocks base method.

func (*MockSet) Sample

func (m *MockSet) Sample(seed uint64) (ids.NodeID, error)

Sample mocks base method.

func (*MockSet) String

func (m *MockSet) String() string

String mocks base method.

func (*MockSet) Weight

func (m *MockSet) Weight() uint64

Weight mocks base method.

type MockSetCallbackListener

type MockSetCallbackListener struct {
	// contains filtered or unexported fields
}

MockSetCallbackListener is a mock of SetCallbackListener interface.

func NewMockSetCallbackListener

func NewMockSetCallbackListener(ctrl *gomock.Controller) *MockSetCallbackListener

NewMockSetCallbackListener creates a new mock instance.

func (*MockSetCallbackListener) EXPECT

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

func (*MockSetCallbackListener) OnValidatorAdded

func (m *MockSetCallbackListener) OnValidatorAdded(nodeID ids.NodeID, pk *bls.PublicKey, txID ids.ID, weight uint64)

OnValidatorAdded mocks base method.

func (*MockSetCallbackListener) OnValidatorRemoved

func (m *MockSetCallbackListener) OnValidatorRemoved(nodeID ids.NodeID, weight uint64)

OnValidatorRemoved mocks base method.

func (*MockSetCallbackListener) OnValidatorWeightChanged

func (m *MockSetCallbackListener) OnValidatorWeightChanged(nodeID ids.NodeID, oldWeight, newWeight uint64)

OnValidatorWeightChanged mocks base method.

type MockSetCallbackListenerMockRecorder

type MockSetCallbackListenerMockRecorder struct {
	// contains filtered or unexported fields
}

MockSetCallbackListenerMockRecorder is the mock recorder for MockSetCallbackListener.

func (*MockSetCallbackListenerMockRecorder) OnValidatorAdded

func (mr *MockSetCallbackListenerMockRecorder) OnValidatorAdded(nodeID, pk, txID, weight any) *gomock.Call

OnValidatorAdded indicates an expected call of OnValidatorAdded.

func (*MockSetCallbackListenerMockRecorder) OnValidatorRemoved

func (mr *MockSetCallbackListenerMockRecorder) OnValidatorRemoved(nodeID, weight any) *gomock.Call

OnValidatorRemoved indicates an expected call of OnValidatorRemoved.

func (*MockSetCallbackListenerMockRecorder) OnValidatorWeightChanged

func (mr *MockSetCallbackListenerMockRecorder) OnValidatorWeightChanged(nodeID, oldWeight, newWeight any) *gomock.Call

OnValidatorWeightChanged indicates an expected call of OnValidatorWeightChanged.

type MockSetMockRecorder

type MockSetMockRecorder struct {
	// contains filtered or unexported fields
}

MockSetMockRecorder is the mock recorder for MockSet.

func (*MockSetMockRecorder) Add

func (mr *MockSetMockRecorder) Add(nodeID, pk, weight any) *gomock.Call

Add indicates an expected call of Add.

func (*MockSetMockRecorder) AddWeight

func (mr *MockSetMockRecorder) AddWeight(nodeID, weight any) *gomock.Call

AddWeight indicates an expected call of AddWeight.

func (*MockSetMockRecorder) Contains

func (mr *MockSetMockRecorder) Contains(nodeID any) *gomock.Call

Contains indicates an expected call of Contains.

func (*MockSetMockRecorder) Get

func (mr *MockSetMockRecorder) Get(nodeID any) *gomock.Call

Get indicates an expected call of Get.

func (*MockSetMockRecorder) GetMap

func (mr *MockSetMockRecorder) GetMap() *gomock.Call

GetMap indicates an expected call of GetMap.

func (*MockSetMockRecorder) Len

func (mr *MockSetMockRecorder) Len() *gomock.Call

Len indicates an expected call of Len.

func (*MockSetMockRecorder) List

func (mr *MockSetMockRecorder) List() *gomock.Call

List indicates an expected call of List.

func (*MockSetMockRecorder) Remove

func (mr *MockSetMockRecorder) Remove(nodeID any) *gomock.Call

Remove indicates an expected call of Remove.

func (*MockSetMockRecorder) RemoveWeight

func (mr *MockSetMockRecorder) RemoveWeight(nodeID, weight any) *gomock.Call

RemoveWeight indicates an expected call of RemoveWeight.

func (*MockSetMockRecorder) Sample

func (mr *MockSetMockRecorder) Sample(seed any) *gomock.Call

Sample indicates an expected call of Sample.

func (*MockSetMockRecorder) String

func (mr *MockSetMockRecorder) String() *gomock.Call

String indicates an expected call of String.

func (*MockSetMockRecorder) Weight

func (mr *MockSetMockRecorder) Weight() *gomock.Call

Weight indicates an expected call of Weight.

type MockState

type MockState struct {
	// contains filtered or unexported fields
}

MockState is a mock of State interface.

func NewMockState

func NewMockState(ctrl *gomock.Controller) *MockState

NewMockState creates a new mock instance.

func (*MockState) ApplyValidatorPublicKeyDiffs

func (m *MockState) ApplyValidatorPublicKeyDiffs(ctx context.Context, arg1 map[ids.NodeID]*validators.GetValidatorOutput, startHeight, endHeight uint64, subnetID ids.ID) error

ApplyValidatorPublicKeyDiffs mocks base method.

func (*MockState) ApplyValidatorWeightDiffs

func (m *MockState) ApplyValidatorWeightDiffs(ctx context.Context, arg1 map[ids.NodeID]*validators.GetValidatorOutput, startHeight, endHeight uint64, subnetID ids.ID) error

ApplyValidatorWeightDiffs mocks base method.

func (*MockState) EXPECT

func (m *MockState) EXPECT() *MockStateMockRecorder

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

func (*MockState) GetCurrentHeight

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

GetCurrentHeight mocks base method.

func (*MockState) GetCurrentValidatorSet

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

GetCurrentValidatorSet mocks base method.

func (*MockState) GetMinimumHeight

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

GetMinimumHeight mocks base method.

func (*MockState) GetSubnetID

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

GetSubnetID mocks base method.

func (*MockState) GetValidatorSet

func (m *MockState) GetValidatorSet(ctx context.Context, height uint64, subnetID ids.ID) (map[ids.NodeID]*validators.GetValidatorOutput, error)

GetValidatorSet mocks base method.

type MockStateMockRecorder

type MockStateMockRecorder struct {
	// contains filtered or unexported fields
}

MockStateMockRecorder is the mock recorder for MockState.

func (*MockStateMockRecorder) ApplyValidatorPublicKeyDiffs

func (mr *MockStateMockRecorder) ApplyValidatorPublicKeyDiffs(ctx, arg1, startHeight, endHeight, subnetID any) *gomock.Call

ApplyValidatorPublicKeyDiffs indicates an expected call of ApplyValidatorPublicKeyDiffs.

func (*MockStateMockRecorder) ApplyValidatorWeightDiffs

func (mr *MockStateMockRecorder) ApplyValidatorWeightDiffs(ctx, arg1, startHeight, endHeight, subnetID any) *gomock.Call

ApplyValidatorWeightDiffs indicates an expected call of ApplyValidatorWeightDiffs.

func (*MockStateMockRecorder) GetCurrentHeight

func (mr *MockStateMockRecorder) GetCurrentHeight(ctx any) *gomock.Call

GetCurrentHeight indicates an expected call of GetCurrentHeight.

func (*MockStateMockRecorder) GetCurrentValidatorSet

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

GetCurrentValidatorSet indicates an expected call of GetCurrentValidatorSet.

func (*MockStateMockRecorder) GetMinimumHeight

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

GetMinimumHeight indicates an expected call of GetMinimumHeight.

func (*MockStateMockRecorder) GetSubnetID

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

GetSubnetID indicates an expected call of GetSubnetID.

func (*MockStateMockRecorder) GetValidatorSet

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

GetValidatorSet indicates an expected call of GetValidatorSet.

type Set

type Set struct {
	// contains filtered or unexported fields
}

Set is a mock of Set interface.

func NewSet

func NewSet(ctrl *gomock.Controller) *Set

NewSet creates a new mock instance.

func (*Set) Add

func (m *Set) Add(nodeID ids.NodeID, pk []byte, weight uint64) error

Add mocks base method.

func (*Set) AddWeight

func (m *Set) AddWeight(nodeID ids.NodeID, weight uint64) error

AddWeight mocks base method.

func (*Set) Contains

func (m *Set) Contains(nodeID ids.NodeID) bool

Contains mocks base method.

func (*Set) EXPECT

func (m *Set) EXPECT() *SetMockRecorder

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

func (*Set) Get

func (m *Set) Get(nodeID ids.NodeID) (*validators.Validator, bool)

Get mocks base method.

func (*Set) Len

func (m *Set) Len() int

Len mocks base method.

func (*Set) List

func (m *Set) List() []*validators.Validator

List mocks base method.

func (*Set) Remove

func (m *Set) Remove(nodeID ids.NodeID) error

Remove mocks base method.

func (*Set) RemoveWeight

func (m *Set) RemoveWeight(nodeID ids.NodeID, weight uint64) error

RemoveWeight mocks base method.

func (*Set) Sample

func (m *Set) Sample(seed uint64) (ids.NodeID, error)

Sample mocks base method.

func (*Set) String

func (m *Set) String() string

String mocks base method.

func (*Set) Weight

func (m *Set) Weight() uint64

Weight mocks base method.

type SetMockRecorder

type SetMockRecorder struct {
	// contains filtered or unexported fields
}

SetMockRecorder is the mock recorder for Set.

func (*SetMockRecorder) Add

func (mr *SetMockRecorder) Add(nodeID, pk, weight any) *gomock.Call

Add indicates an expected call of Add.

func (*SetMockRecorder) AddWeight

func (mr *SetMockRecorder) AddWeight(nodeID, weight any) *gomock.Call

AddWeight indicates an expected call of AddWeight.

func (*SetMockRecorder) Contains

func (mr *SetMockRecorder) Contains(nodeID any) *gomock.Call

Contains indicates an expected call of Contains.

func (*SetMockRecorder) Get

func (mr *SetMockRecorder) Get(nodeID any) *gomock.Call

Get indicates an expected call of Get.

func (*SetMockRecorder) Len

func (mr *SetMockRecorder) Len() *gomock.Call

Len indicates an expected call of Len.

func (*SetMockRecorder) List

func (mr *SetMockRecorder) List() *gomock.Call

List indicates an expected call of List.

func (*SetMockRecorder) Remove

func (mr *SetMockRecorder) Remove(nodeID any) *gomock.Call

Remove indicates an expected call of Remove.

func (*SetMockRecorder) RemoveWeight

func (mr *SetMockRecorder) RemoveWeight(nodeID, weight any) *gomock.Call

RemoveWeight indicates an expected call of RemoveWeight.

func (*SetMockRecorder) Sample

func (mr *SetMockRecorder) Sample(seed any) *gomock.Call

Sample indicates an expected call of Sample.

func (*SetMockRecorder) String

func (mr *SetMockRecorder) String() *gomock.Call

String indicates an expected call of String.

func (*SetMockRecorder) Weight

func (mr *SetMockRecorder) Weight() *gomock.Call

Weight indicates an expected call of Weight.

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

func (m *State) GetMinimumHeight(ctx 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(ctx any) *gomock.Call

GetCurrentHeight indicates an expected call of GetCurrentHeight.

func (*StateMockRecorder) GetMinimumHeight

func (mr *StateMockRecorder) GetMinimumHeight(ctx 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