mocks

package
v0.5.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: AGPL-3.0 Imports: 7 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 MockBeaconClient

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

MockBeaconClient is a mock of BeaconClient interface.

func NewMockBeaconClient

func NewMockBeaconClient(ctrl *gomock.Controller) *MockBeaconClient

NewMockBeaconClient creates a new mock instance.

func (*MockBeaconClient) EXPECT

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

func (*MockBeaconClient) Genesis

func (m *MockBeaconClient) Genesis() (structs.GenesisInfo, error)

Genesis mocks base method.

func (*MockBeaconClient) GetForkSchedule

func (m *MockBeaconClient) GetForkSchedule() (*client.GetForkScheduleResponse, error)

GetForkSchedule mocks base method.

func (*MockBeaconClient) GetProposerDuties

func (m *MockBeaconClient) GetProposerDuties(arg0 structs.Epoch) (*client.RegisteredProposersResponse, error)

GetProposerDuties mocks base method.

func (*MockBeaconClient) GetWithdrawals

func (m *MockBeaconClient) GetWithdrawals(arg0 structs.Slot) (*client.GetWithdrawalsResponse, error)

GetWithdrawals mocks base method.

func (*MockBeaconClient) KnownValidators

func (m *MockBeaconClient) KnownValidators(arg0 structs.Slot) (client.AllValidatorsResponse, error)

KnownValidators mocks base method.

func (*MockBeaconClient) Randao

func (m *MockBeaconClient) Randao(arg0 structs.Slot) (string, error)

Randao mocks base method.

func (*MockBeaconClient) SubscribeToHeadEvents

func (m *MockBeaconClient) SubscribeToHeadEvents(arg0 context.Context, arg1 chan client.HeadEvent)

SubscribeToHeadEvents mocks base method.

func (*MockBeaconClient) SubscribeToPayloadAttributesEvents added in v0.4.14

func (m *MockBeaconClient) SubscribeToPayloadAttributesEvents(arg0 chan client.PayloadAttributesEvent)

SubscribeToPayloadAttributesEvents mocks base method.

func (*MockBeaconClient) SyncStatus

func (m *MockBeaconClient) SyncStatus() (*client.SyncStatusPayloadData, error)

SyncStatus mocks base method.

type MockBeaconClientMockRecorder

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

MockBeaconClientMockRecorder is the mock recorder for MockBeaconClient.

func (*MockBeaconClientMockRecorder) Genesis

func (mr *MockBeaconClientMockRecorder) Genesis() *gomock.Call

Genesis indicates an expected call of Genesis.

func (*MockBeaconClientMockRecorder) GetForkSchedule

func (mr *MockBeaconClientMockRecorder) GetForkSchedule() *gomock.Call

GetForkSchedule indicates an expected call of GetForkSchedule.

func (*MockBeaconClientMockRecorder) GetProposerDuties

func (mr *MockBeaconClientMockRecorder) GetProposerDuties(arg0 interface{}) *gomock.Call

GetProposerDuties indicates an expected call of GetProposerDuties.

func (*MockBeaconClientMockRecorder) GetWithdrawals

func (mr *MockBeaconClientMockRecorder) GetWithdrawals(arg0 interface{}) *gomock.Call

GetWithdrawals indicates an expected call of GetWithdrawals.

func (*MockBeaconClientMockRecorder) KnownValidators

func (mr *MockBeaconClientMockRecorder) KnownValidators(arg0 interface{}) *gomock.Call

KnownValidators indicates an expected call of KnownValidators.

func (*MockBeaconClientMockRecorder) Randao

func (mr *MockBeaconClientMockRecorder) Randao(arg0 interface{}) *gomock.Call

Randao indicates an expected call of Randao.

func (*MockBeaconClientMockRecorder) SubscribeToHeadEvents

func (mr *MockBeaconClientMockRecorder) SubscribeToHeadEvents(arg0, arg1 interface{}) *gomock.Call

SubscribeToHeadEvents indicates an expected call of SubscribeToHeadEvents.

func (*MockBeaconClientMockRecorder) SubscribeToPayloadAttributesEvents added in v0.4.14

func (mr *MockBeaconClientMockRecorder) SubscribeToPayloadAttributesEvents(arg0 interface{}) *gomock.Call

SubscribeToPayloadAttributesEvents indicates an expected call of SubscribeToPayloadAttributesEvents.

func (*MockBeaconClientMockRecorder) SyncStatus

func (mr *MockBeaconClientMockRecorder) SyncStatus() *gomock.Call

SyncStatus indicates an expected call of SyncStatus.

type MockDatastore

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

MockDatastore is a mock of Datastore interface.

func NewMockDatastore

func NewMockDatastore(ctrl *gomock.Controller) *MockDatastore

NewMockDatastore creates a new mock instance.

func (*MockDatastore) EXPECT

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

func (*MockDatastore) GetRegistration

GetRegistration mocks base method.

type MockDatastoreMockRecorder

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

MockDatastoreMockRecorder is the mock recorder for MockDatastore.

func (*MockDatastoreMockRecorder) GetRegistration

func (mr *MockDatastoreMockRecorder) GetRegistration(arg0, arg1 interface{}) *gomock.Call

GetRegistration indicates an expected call of GetRegistration.

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

func (m *MockState) Duties() structs.DutiesState

Duties 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) Fork

func (m *MockState) Fork() structs.ForkState

Fork mocks base method.

func (*MockState) HeadSlot

func (m *MockState) HeadSlot() structs.Slot

HeadSlot mocks base method.

func (*MockState) HeadSlotPayloadAttributes added in v0.4.14

func (m *MockState) HeadSlotPayloadAttributes() uint64

HeadSlotPayloadAttributes mocks base method.

func (*MockState) KnownValidators

func (m *MockState) KnownValidators() structs.ValidatorsState

KnownValidators mocks base method.

func (*MockState) KnownValidatorsUpdateTime

func (m *MockState) KnownValidatorsUpdateTime() time.Time

KnownValidatorsUpdateTime mocks base method.

func (*MockState) ParentBlockHash added in v0.4.14

func (m *MockState) ParentBlockHash() string

ParentBlockHash mocks base method.

func (*MockState) Randao

func (m *MockState) Randao(arg0 uint64) structs.RandaoState

Randao mocks base method.

func (*MockState) SetDuties

func (m *MockState) SetDuties(arg0 structs.DutiesState)

SetDuties mocks base method.

func (*MockState) SetFork

func (m *MockState) SetFork(arg0 structs.ForkState)

SetFork mocks base method.

func (*MockState) SetGenesis

func (m *MockState) SetGenesis(arg0 structs.GenesisInfo)

SetGenesis mocks base method.

func (*MockState) SetHeadSlot

func (m *MockState) SetHeadSlot(arg0 structs.Slot)

SetHeadSlot mocks base method.

func (*MockState) SetHeadSlotPayloadAttributesIfHigher added in v0.4.21

func (m *MockState) SetHeadSlotPayloadAttributesIfHigher(arg0 uint64) (uint64, bool)

SetHeadSlotPayloadAttributesIfHigher mocks base method.

func (*MockState) SetKnownValidators

func (m *MockState) SetKnownValidators(arg0 structs.ValidatorsState)

SetKnownValidators mocks base method.

func (*MockState) SetParentBlockHash added in v0.4.14

func (m *MockState) SetParentBlockHash(arg0 string)

SetParentBlockHash mocks base method.

func (*MockState) SetRandao

func (m *MockState) SetRandao(arg0 structs.RandaoState)

SetRandao mocks base method.

func (*MockState) SetWithdrawals

func (m *MockState) SetWithdrawals(arg0 structs.WithdrawalsState)

SetWithdrawals mocks base method.

func (*MockState) Withdrawals

func (m *MockState) Withdrawals(arg0 uint64) structs.WithdrawalsState

Withdrawals mocks base method.

type MockStateMockRecorder

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

MockStateMockRecorder is the mock recorder for MockState.

func (*MockStateMockRecorder) Duties

func (mr *MockStateMockRecorder) Duties() *gomock.Call

Duties indicates an expected call of Duties.

func (*MockStateMockRecorder) Fork

func (mr *MockStateMockRecorder) Fork() *gomock.Call

Fork indicates an expected call of Fork.

func (*MockStateMockRecorder) HeadSlot

func (mr *MockStateMockRecorder) HeadSlot() *gomock.Call

HeadSlot indicates an expected call of HeadSlot.

func (*MockStateMockRecorder) HeadSlotPayloadAttributes added in v0.4.14

func (mr *MockStateMockRecorder) HeadSlotPayloadAttributes() *gomock.Call

HeadSlotPayloadAttributes indicates an expected call of HeadSlotPayloadAttributes.

func (*MockStateMockRecorder) KnownValidators

func (mr *MockStateMockRecorder) KnownValidators() *gomock.Call

KnownValidators indicates an expected call of KnownValidators.

func (*MockStateMockRecorder) KnownValidatorsUpdateTime

func (mr *MockStateMockRecorder) KnownValidatorsUpdateTime() *gomock.Call

KnownValidatorsUpdateTime indicates an expected call of KnownValidatorsUpdateTime.

func (*MockStateMockRecorder) ParentBlockHash added in v0.4.14

func (mr *MockStateMockRecorder) ParentBlockHash() *gomock.Call

ParentBlockHash indicates an expected call of ParentBlockHash.

func (*MockStateMockRecorder) Randao

func (mr *MockStateMockRecorder) Randao(arg0 interface{}) *gomock.Call

Randao indicates an expected call of Randao.

func (*MockStateMockRecorder) SetDuties

func (mr *MockStateMockRecorder) SetDuties(arg0 interface{}) *gomock.Call

SetDuties indicates an expected call of SetDuties.

func (*MockStateMockRecorder) SetFork

func (mr *MockStateMockRecorder) SetFork(arg0 interface{}) *gomock.Call

SetFork indicates an expected call of SetFork.

func (*MockStateMockRecorder) SetGenesis

func (mr *MockStateMockRecorder) SetGenesis(arg0 interface{}) *gomock.Call

SetGenesis indicates an expected call of SetGenesis.

func (*MockStateMockRecorder) SetHeadSlot

func (mr *MockStateMockRecorder) SetHeadSlot(arg0 interface{}) *gomock.Call

SetHeadSlot indicates an expected call of SetHeadSlot.

func (*MockStateMockRecorder) SetHeadSlotPayloadAttributesIfHigher added in v0.4.21

func (mr *MockStateMockRecorder) SetHeadSlotPayloadAttributesIfHigher(arg0 interface{}) *gomock.Call

SetHeadSlotPayloadAttributesIfHigher indicates an expected call of SetHeadSlotPayloadAttributesIfHigher.

func (*MockStateMockRecorder) SetKnownValidators

func (mr *MockStateMockRecorder) SetKnownValidators(arg0 interface{}) *gomock.Call

SetKnownValidators indicates an expected call of SetKnownValidators.

func (*MockStateMockRecorder) SetParentBlockHash added in v0.4.14

func (mr *MockStateMockRecorder) SetParentBlockHash(arg0 interface{}) *gomock.Call

SetParentBlockHash indicates an expected call of SetParentBlockHash.

func (*MockStateMockRecorder) SetRandao

func (mr *MockStateMockRecorder) SetRandao(arg0 interface{}) *gomock.Call

SetRandao indicates an expected call of SetRandao.

func (*MockStateMockRecorder) SetWithdrawals

func (mr *MockStateMockRecorder) SetWithdrawals(arg0 interface{}) *gomock.Call

SetWithdrawals indicates an expected call of SetWithdrawals.

func (*MockStateMockRecorder) Withdrawals

func (mr *MockStateMockRecorder) Withdrawals(arg0 interface{}) *gomock.Call

Withdrawals indicates an expected call of Withdrawals.

type MockValidatorCache

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

MockValidatorCache is a mock of ValidatorCache interface.

func NewMockValidatorCache

func NewMockValidatorCache(ctrl *gomock.Controller) *MockValidatorCache

NewMockValidatorCache creates a new mock instance.

func (*MockValidatorCache) EXPECT

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

func (*MockValidatorCache) Get

Get mocks base method.

type MockValidatorCacheMockRecorder

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

MockValidatorCacheMockRecorder is the mock recorder for MockValidatorCache.

func (*MockValidatorCacheMockRecorder) Get

func (mr *MockValidatorCacheMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get.

Jump to

Keyboard shortcuts

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