mocks

package
v1.0.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBeaconNode added in v1.1.0

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

MockBeaconNode is a mock of BeaconNode interface.

func NewMockBeaconNode added in v1.1.0

func NewMockBeaconNode(ctrl *gomock.Controller) *MockBeaconNode

NewMockBeaconNode creates a new mock instance.

func (*MockBeaconNode) AttesterDuties added in v1.1.0

func (m *MockBeaconNode) AttesterDuties(ctx context.Context, epoch phase0.Epoch, validatorIndices []phase0.ValidatorIndex) ([]*v1.AttesterDuty, error)

AttesterDuties mocks base method.

func (*MockBeaconNode) EXPECT added in v1.1.0

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

func (*MockBeaconNode) Events added in v1.1.0

func (m *MockBeaconNode) Events(ctx context.Context, topics []string, handler client.EventHandlerFunc) error

Events mocks base method.

func (*MockBeaconNode) ProposerDuties added in v1.1.0

func (m *MockBeaconNode) ProposerDuties(ctx context.Context, epoch phase0.Epoch, validatorIndices []phase0.ValidatorIndex) ([]*v1.ProposerDuty, error)

ProposerDuties mocks base method.

func (*MockBeaconNode) SubmitBeaconCommitteeSubscriptions added in v1.1.0

func (m *MockBeaconNode) SubmitBeaconCommitteeSubscriptions(ctx context.Context, subscription []*v1.BeaconCommitteeSubscription) error

SubmitBeaconCommitteeSubscriptions mocks base method.

func (*MockBeaconNode) SubmitSyncCommitteeSubscriptions added in v1.1.0

func (m *MockBeaconNode) SubmitSyncCommitteeSubscriptions(ctx context.Context, subscription []*v1.SyncCommitteeSubscription) error

SubmitSyncCommitteeSubscriptions mocks base method.

func (*MockBeaconNode) SyncCommitteeDuties added in v1.1.0

func (m *MockBeaconNode) SyncCommitteeDuties(ctx context.Context, epoch phase0.Epoch, indices []phase0.ValidatorIndex) ([]*v1.SyncCommitteeDuty, error)

SyncCommitteeDuties mocks base method.

type MockBeaconNodeMockRecorder added in v1.1.0

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

MockBeaconNodeMockRecorder is the mock recorder for MockBeaconNode.

func (*MockBeaconNodeMockRecorder) AttesterDuties added in v1.1.0

func (mr *MockBeaconNodeMockRecorder) AttesterDuties(ctx, epoch, validatorIndices interface{}) *gomock.Call

AttesterDuties indicates an expected call of AttesterDuties.

func (*MockBeaconNodeMockRecorder) Events added in v1.1.0

func (mr *MockBeaconNodeMockRecorder) Events(ctx, topics, handler interface{}) *gomock.Call

Events indicates an expected call of Events.

func (*MockBeaconNodeMockRecorder) ProposerDuties added in v1.1.0

func (mr *MockBeaconNodeMockRecorder) ProposerDuties(ctx, epoch, validatorIndices interface{}) *gomock.Call

ProposerDuties indicates an expected call of ProposerDuties.

func (*MockBeaconNodeMockRecorder) SubmitBeaconCommitteeSubscriptions added in v1.1.0

func (mr *MockBeaconNodeMockRecorder) SubmitBeaconCommitteeSubscriptions(ctx, subscription interface{}) *gomock.Call

SubmitBeaconCommitteeSubscriptions indicates an expected call of SubmitBeaconCommitteeSubscriptions.

func (*MockBeaconNodeMockRecorder) SubmitSyncCommitteeSubscriptions added in v1.1.0

func (mr *MockBeaconNodeMockRecorder) SubmitSyncCommitteeSubscriptions(ctx, subscription interface{}) *gomock.Call

SubmitSyncCommitteeSubscriptions indicates an expected call of SubmitSyncCommitteeSubscriptions.

func (*MockBeaconNodeMockRecorder) SyncCommitteeDuties added in v1.1.0

func (mr *MockBeaconNodeMockRecorder) SyncCommitteeDuties(ctx, epoch, indices interface{}) *gomock.Call

SyncCommitteeDuties indicates an expected call of SyncCommitteeDuties.

type MockSlotTicker added in v1.1.0

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

MockSlotTicker is a mock of SlotTicker interface.

func NewMockSlotTicker added in v1.1.0

func NewMockSlotTicker(ctrl *gomock.Controller) *MockSlotTicker

NewMockSlotTicker creates a new mock instance.

func (*MockSlotTicker) EXPECT added in v1.1.0

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

func (*MockSlotTicker) Subscribe

func (m *MockSlotTicker) Subscribe(subscription chan phase0.Slot) event.Subscription

Subscribe mocks base method.

type MockSlotTickerMockRecorder added in v1.1.0

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

MockSlotTickerMockRecorder is the mock recorder for MockSlotTicker.

func (*MockSlotTickerMockRecorder) Subscribe

func (mr *MockSlotTickerMockRecorder) Subscribe(subscription interface{}) *gomock.Call

Subscribe indicates an expected call of Subscribe.

type MockValidatorController added in v1.1.0

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

MockValidatorController is a mock of ValidatorController interface.

func NewMockValidatorController added in v1.1.0

func NewMockValidatorController(ctrl *gomock.Controller) *MockValidatorController

NewMockValidatorController creates a new mock instance.

func (*MockValidatorController) ActiveValidatorIndices

func (m *MockValidatorController) ActiveValidatorIndices(epoch phase0.Epoch) []phase0.ValidatorIndex

ActiveValidatorIndices mocks base method.

func (*MockValidatorController) EXPECT added in v1.1.0

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

func (*MockValidatorController) GetOperatorShares added in v1.1.0

func (m *MockValidatorController) GetOperatorShares() []*types.SSVShare

GetOperatorShares mocks base method.

type MockValidatorControllerMockRecorder added in v1.1.0

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

MockValidatorControllerMockRecorder is the mock recorder for MockValidatorController.

func (*MockValidatorControllerMockRecorder) ActiveValidatorIndices

func (mr *MockValidatorControllerMockRecorder) ActiveValidatorIndices(epoch interface{}) *gomock.Call

ActiveValidatorIndices indicates an expected call of ActiveValidatorIndices.

func (*MockValidatorControllerMockRecorder) GetOperatorShares added in v1.1.0

func (mr *MockValidatorControllerMockRecorder) GetOperatorShares() *gomock.Call

GetOperatorShares indicates an expected call of GetOperatorShares.

Jump to

Keyboard shortcuts

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