mocks

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: GPL-3.0 Imports: 10 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 MockExecutionClient added in v1.2.2

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

MockExecutionClient is a mock of ExecutionClient interface.

func NewMockExecutionClient added in v1.2.2

func NewMockExecutionClient(ctrl *gomock.Controller) *MockExecutionClient

NewMockExecutionClient creates a new mock instance.

func (*MockExecutionClient) BlockByNumber added in v1.2.2

func (m *MockExecutionClient) BlockByNumber(ctx context.Context, blockNumber *big.Int) (*types0.Block, error)

BlockByNumber mocks base method.

func (*MockExecutionClient) EXPECT added in v1.2.2

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

type MockExecutionClientMockRecorder added in v1.2.2

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

MockExecutionClientMockRecorder is the mock recorder for MockExecutionClient.

func (*MockExecutionClientMockRecorder) BlockByNumber added in v1.2.2

func (mr *MockExecutionClientMockRecorder) BlockByNumber(ctx, blockNumber interface{}) *gomock.Call

BlockByNumber indicates an expected call of BlockByNumber.

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) Next added in v1.1.0

func (m *MockSlotTicker) Next() <-chan time.Time

Next mocks base method.

func (*MockSlotTicker) Slot added in v1.1.0

func (m *MockSlotTicker) Slot() phase0.Slot

Slot 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) Next added in v1.1.0

Next indicates an expected call of Next.

func (*MockSlotTickerMockRecorder) Slot added in v1.1.0

Slot indicates an expected call of Slot.

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) AllActiveIndices added in v1.1.0

func (m *MockValidatorController) AllActiveIndices(epoch phase0.Epoch, afterInit bool) []phase0.ValidatorIndex

AllActiveIndices mocks base method.

func (*MockValidatorController) CommitteeActiveIndices added in v1.1.0

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

CommitteeActiveIndices 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) AllActiveIndices added in v1.1.0

func (mr *MockValidatorControllerMockRecorder) AllActiveIndices(epoch, afterInit interface{}) *gomock.Call

AllActiveIndices indicates an expected call of AllActiveIndices.

func (*MockValidatorControllerMockRecorder) CommitteeActiveIndices added in v1.1.0

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

CommitteeActiveIndices indicates an expected call of CommitteeActiveIndices.

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