mock_services

package
v1.9.7-0...-c81b736 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mock_services is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockSyncedData

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

MockSyncedData is a mock of SyncedData interface.

func NewMockSyncedData

func NewMockSyncedData(ctrl *gomock.Controller) *MockSyncedData

NewMockSyncedData creates a new mock instance.

func (*MockSyncedData) CommitteeCount

func (m *MockSyncedData) CommitteeCount(epoch uint64) uint64

CommitteeCount mocks base method.

func (*MockSyncedData) EXPECT

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

func (*MockSyncedData) HeadRoot

func (m *MockSyncedData) HeadRoot() common.Hash

HeadRoot mocks base method.

func (*MockSyncedData) HeadSlot

func (m *MockSyncedData) HeadSlot() uint64

HeadSlot mocks base method.

func (*MockSyncedData) HistoricalRootElementAtIndex

func (m *MockSyncedData) HistoricalRootElementAtIndex(index int) (common.Hash, error)

HistoricalRootElementAtIndex mocks base method.

func (*MockSyncedData) HistoricalSummaryElementAtIndex

func (m *MockSyncedData) HistoricalSummaryElementAtIndex(index int) (*cltypes.HistoricalSummary, error)

HistoricalSummaryElementAtIndex mocks base method.

func (*MockSyncedData) OnHeadState

func (m *MockSyncedData) OnHeadState(newState *state.CachingBeaconState) error

OnHeadState mocks base method.

func (*MockSyncedData) Syncing

func (m *MockSyncedData) Syncing() bool

Syncing mocks base method.

func (*MockSyncedData) UnsetHeadState

func (m *MockSyncedData) UnsetHeadState()

UnsetHeadState mocks base method.

func (*MockSyncedData) ValidatorIndexByPublicKey

func (m *MockSyncedData) ValidatorIndexByPublicKey(pubkey common.Bytes48) (uint64, bool, error)

ValidatorIndexByPublicKey mocks base method.

func (*MockSyncedData) ValidatorPublicKeyByIndex

func (m *MockSyncedData) ValidatorPublicKeyByIndex(index int) (common.Bytes48, error)

ValidatorPublicKeyByIndex mocks base method.

func (*MockSyncedData) ViewHeadState

func (m *MockSyncedData) ViewHeadState(fn synced_data.ViewHeadStateFn) error

ViewHeadState mocks base method.

func (*MockSyncedData) ViewPreviousHeadState

func (m *MockSyncedData) ViewPreviousHeadState(arg0 synced_data.ViewHeadStateFn) error

ViewPreviousHeadState mocks base method.

type MockSyncedDataCommitteeCountCall

type MockSyncedDataCommitteeCountCall struct {
	*gomock.Call
}

MockSyncedDataCommitteeCountCall wrap *gomock.Call

func (*MockSyncedDataCommitteeCountCall) Do

Do rewrite *gomock.Call.Do

func (*MockSyncedDataCommitteeCountCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSyncedDataCommitteeCountCall) Return

Return rewrite *gomock.Call.Return

type MockSyncedDataHeadRootCall

type MockSyncedDataHeadRootCall struct {
	*gomock.Call
}

MockSyncedDataHeadRootCall wrap *gomock.Call

func (*MockSyncedDataHeadRootCall) Do

Do rewrite *gomock.Call.Do

func (*MockSyncedDataHeadRootCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSyncedDataHeadRootCall) Return

Return rewrite *gomock.Call.Return

type MockSyncedDataHeadSlotCall

type MockSyncedDataHeadSlotCall struct {
	*gomock.Call
}

MockSyncedDataHeadSlotCall wrap *gomock.Call

func (*MockSyncedDataHeadSlotCall) Do

Do rewrite *gomock.Call.Do

func (*MockSyncedDataHeadSlotCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSyncedDataHeadSlotCall) Return

Return rewrite *gomock.Call.Return

type MockSyncedDataHistoricalRootElementAtIndexCall

type MockSyncedDataHistoricalRootElementAtIndexCall struct {
	*gomock.Call
}

MockSyncedDataHistoricalRootElementAtIndexCall wrap *gomock.Call

func (*MockSyncedDataHistoricalRootElementAtIndexCall) Do

Do rewrite *gomock.Call.Do

func (*MockSyncedDataHistoricalRootElementAtIndexCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSyncedDataHistoricalRootElementAtIndexCall) Return

Return rewrite *gomock.Call.Return

type MockSyncedDataHistoricalSummaryElementAtIndexCall

type MockSyncedDataHistoricalSummaryElementAtIndexCall struct {
	*gomock.Call
}

MockSyncedDataHistoricalSummaryElementAtIndexCall wrap *gomock.Call

func (*MockSyncedDataHistoricalSummaryElementAtIndexCall) Do

Do rewrite *gomock.Call.Do

func (*MockSyncedDataHistoricalSummaryElementAtIndexCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSyncedDataHistoricalSummaryElementAtIndexCall) Return

Return rewrite *gomock.Call.Return

type MockSyncedDataMockRecorder

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

MockSyncedDataMockRecorder is the mock recorder for MockSyncedData.

func (*MockSyncedDataMockRecorder) CommitteeCount

CommitteeCount indicates an expected call of CommitteeCount.

func (*MockSyncedDataMockRecorder) HeadRoot

HeadRoot indicates an expected call of HeadRoot.

func (*MockSyncedDataMockRecorder) HeadSlot

HeadSlot indicates an expected call of HeadSlot.

func (*MockSyncedDataMockRecorder) HistoricalRootElementAtIndex

func (mr *MockSyncedDataMockRecorder) HistoricalRootElementAtIndex(index any) *MockSyncedDataHistoricalRootElementAtIndexCall

HistoricalRootElementAtIndex indicates an expected call of HistoricalRootElementAtIndex.

func (*MockSyncedDataMockRecorder) HistoricalSummaryElementAtIndex

func (mr *MockSyncedDataMockRecorder) HistoricalSummaryElementAtIndex(index any) *MockSyncedDataHistoricalSummaryElementAtIndexCall

HistoricalSummaryElementAtIndex indicates an expected call of HistoricalSummaryElementAtIndex.

func (*MockSyncedDataMockRecorder) OnHeadState

OnHeadState indicates an expected call of OnHeadState.

func (*MockSyncedDataMockRecorder) Syncing

Syncing indicates an expected call of Syncing.

func (*MockSyncedDataMockRecorder) UnsetHeadState

UnsetHeadState indicates an expected call of UnsetHeadState.

func (*MockSyncedDataMockRecorder) ValidatorIndexByPublicKey

func (mr *MockSyncedDataMockRecorder) ValidatorIndexByPublicKey(pubkey any) *MockSyncedDataValidatorIndexByPublicKeyCall

ValidatorIndexByPublicKey indicates an expected call of ValidatorIndexByPublicKey.

func (*MockSyncedDataMockRecorder) ValidatorPublicKeyByIndex

func (mr *MockSyncedDataMockRecorder) ValidatorPublicKeyByIndex(index any) *MockSyncedDataValidatorPublicKeyByIndexCall

ValidatorPublicKeyByIndex indicates an expected call of ValidatorPublicKeyByIndex.

func (*MockSyncedDataMockRecorder) ViewHeadState

ViewHeadState indicates an expected call of ViewHeadState.

func (*MockSyncedDataMockRecorder) ViewPreviousHeadState

ViewPreviousHeadState indicates an expected call of ViewPreviousHeadState.

type MockSyncedDataOnHeadStateCall

type MockSyncedDataOnHeadStateCall struct {
	*gomock.Call
}

MockSyncedDataOnHeadStateCall wrap *gomock.Call

func (*MockSyncedDataOnHeadStateCall) Do

Do rewrite *gomock.Call.Do

func (*MockSyncedDataOnHeadStateCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSyncedDataOnHeadStateCall) Return

Return rewrite *gomock.Call.Return

type MockSyncedDataSyncingCall

type MockSyncedDataSyncingCall struct {
	*gomock.Call
}

MockSyncedDataSyncingCall wrap *gomock.Call

func (*MockSyncedDataSyncingCall) Do

Do rewrite *gomock.Call.Do

func (*MockSyncedDataSyncingCall) DoAndReturn

func (c *MockSyncedDataSyncingCall) DoAndReturn(f func() bool) *MockSyncedDataSyncingCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSyncedDataSyncingCall) Return

Return rewrite *gomock.Call.Return

type MockSyncedDataUnsetHeadStateCall

type MockSyncedDataUnsetHeadStateCall struct {
	*gomock.Call
}

MockSyncedDataUnsetHeadStateCall wrap *gomock.Call

func (*MockSyncedDataUnsetHeadStateCall) Do

Do rewrite *gomock.Call.Do

func (*MockSyncedDataUnsetHeadStateCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSyncedDataUnsetHeadStateCall) Return

Return rewrite *gomock.Call.Return

type MockSyncedDataValidatorIndexByPublicKeyCall

type MockSyncedDataValidatorIndexByPublicKeyCall struct {
	*gomock.Call
}

MockSyncedDataValidatorIndexByPublicKeyCall wrap *gomock.Call

func (*MockSyncedDataValidatorIndexByPublicKeyCall) Do

Do rewrite *gomock.Call.Do

func (*MockSyncedDataValidatorIndexByPublicKeyCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSyncedDataValidatorIndexByPublicKeyCall) Return

Return rewrite *gomock.Call.Return

type MockSyncedDataValidatorPublicKeyByIndexCall

type MockSyncedDataValidatorPublicKeyByIndexCall struct {
	*gomock.Call
}

MockSyncedDataValidatorPublicKeyByIndexCall wrap *gomock.Call

func (*MockSyncedDataValidatorPublicKeyByIndexCall) Do

Do rewrite *gomock.Call.Do

func (*MockSyncedDataValidatorPublicKeyByIndexCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSyncedDataValidatorPublicKeyByIndexCall) Return

Return rewrite *gomock.Call.Return

type MockSyncedDataViewHeadStateCall

type MockSyncedDataViewHeadStateCall struct {
	*gomock.Call
}

MockSyncedDataViewHeadStateCall wrap *gomock.Call

func (*MockSyncedDataViewHeadStateCall) Do

Do rewrite *gomock.Call.Do

func (*MockSyncedDataViewHeadStateCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSyncedDataViewHeadStateCall) Return

Return rewrite *gomock.Call.Return

type MockSyncedDataViewPreviousHeadStateCall

type MockSyncedDataViewPreviousHeadStateCall struct {
	*gomock.Call
}

MockSyncedDataViewPreviousHeadStateCall wrap *gomock.Call

func (*MockSyncedDataViewPreviousHeadStateCall) Do

Do rewrite *gomock.Call.Do

func (*MockSyncedDataViewPreviousHeadStateCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSyncedDataViewPreviousHeadStateCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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