mocks

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: AGPL-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 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) Endpoint

func (m *MockBeaconClient) Endpoint() string

Endpoint mocks base method.

func (*MockBeaconClient) Genesis

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

Genesis mocks base method.

func (*MockBeaconClient) GetProposerDuties

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

GetProposerDuties mocks base method.

func (*MockBeaconClient) KnownValidators

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

KnownValidators mocks base method.

func (*MockBeaconClient) SubscribeToHeadEvents

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

SubscribeToHeadEvents mocks base method.

func (*MockBeaconClient) SyncStatus

func (m *MockBeaconClient) SyncStatus() (*relay.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) Endpoint

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

Endpoint indicates an expected call of Endpoint.

func (*MockBeaconClientMockRecorder) Genesis

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

Genesis indicates an expected call of Genesis.

func (*MockBeaconClientMockRecorder) GetProposerDuties

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

GetProposerDuties indicates an expected call of GetProposerDuties.

func (*MockBeaconClientMockRecorder) KnownValidators

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

KnownValidators indicates an expected call of KnownValidators.

func (*MockBeaconClientMockRecorder) SubscribeToHeadEvents

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

SubscribeToHeadEvents indicates an expected call of SubscribeToHeadEvents.

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

GetDelivered mocks base method.

func (*MockDatastore) GetDeliveredBatch

func (m *MockDatastore) GetDeliveredBatch(arg0 context.Context, arg1 []structs.PayloadQuery) ([]structs.BidTraceWithTimestamp, error)

GetDeliveredBatch mocks base method.

func (*MockDatastore) GetHeadersByBlockHash

func (m *MockDatastore) GetHeadersByBlockHash(arg0 context.Context, arg1 types.Hash) ([]structs.HeaderAndTrace, error)

GetHeadersByBlockHash mocks base method.

func (*MockDatastore) GetHeadersByBlockNum

func (m *MockDatastore) GetHeadersByBlockNum(arg0 context.Context, arg1 uint64) ([]structs.HeaderAndTrace, error)

GetHeadersByBlockNum mocks base method.

func (*MockDatastore) GetHeadersBySlot

func (m *MockDatastore) GetHeadersBySlot(arg0 context.Context, arg1 uint64) ([]structs.HeaderAndTrace, error)

GetHeadersBySlot mocks base method.

func (*MockDatastore) GetLatestHeaders

func (m *MockDatastore) GetLatestHeaders(arg0 context.Context, arg1, arg2 uint64) ([]structs.HeaderAndTrace, error)

GetLatestHeaders mocks base method.

func (*MockDatastore) GetPayload

GetPayload mocks base method.

func (*MockDatastore) GetRegistration

GetRegistration mocks base method.

func (*MockDatastore) PutDelivered

func (m *MockDatastore) PutDelivered(arg0 context.Context, arg1 structs.Slot, arg2 structs.DeliveredTrace, arg3 time.Duration) error

PutDelivered mocks base method.

func (*MockDatastore) PutPayload

func (m *MockDatastore) PutPayload(arg0 context.Context, arg1 structs.PayloadKey, arg2 *structs.BlockBidAndTrace, arg3 time.Duration) error

PutPayload mocks base method.

func (*MockDatastore) PutRegistrationRaw

func (m *MockDatastore) PutRegistrationRaw(arg0 context.Context, arg1 structs.PubKey, arg2 []byte, arg3 time.Duration) error

PutRegistrationRaw mocks base method.

type MockDatastoreMockRecorder

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

MockDatastoreMockRecorder is the mock recorder for MockDatastore.

func (*MockDatastoreMockRecorder) GetDelivered

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

GetDelivered indicates an expected call of GetDelivered.

func (*MockDatastoreMockRecorder) GetDeliveredBatch

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

GetDeliveredBatch indicates an expected call of GetDeliveredBatch.

func (*MockDatastoreMockRecorder) GetHeadersByBlockHash

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

GetHeadersByBlockHash indicates an expected call of GetHeadersByBlockHash.

func (*MockDatastoreMockRecorder) GetHeadersByBlockNum

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

GetHeadersByBlockNum indicates an expected call of GetHeadersByBlockNum.

func (*MockDatastoreMockRecorder) GetHeadersBySlot

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

GetHeadersBySlot indicates an expected call of GetHeadersBySlot.

func (*MockDatastoreMockRecorder) GetLatestHeaders

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

GetLatestHeaders indicates an expected call of GetLatestHeaders.

func (*MockDatastoreMockRecorder) GetPayload

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

GetPayload indicates an expected call of GetPayload.

func (*MockDatastoreMockRecorder) GetRegistration

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

GetRegistration indicates an expected call of GetRegistration.

func (*MockDatastoreMockRecorder) PutDelivered

func (mr *MockDatastoreMockRecorder) PutDelivered(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

PutDelivered indicates an expected call of PutDelivered.

func (*MockDatastoreMockRecorder) PutPayload

func (mr *MockDatastoreMockRecorder) PutPayload(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

PutPayload indicates an expected call of PutPayload.

func (*MockDatastoreMockRecorder) PutRegistrationRaw

func (mr *MockDatastoreMockRecorder) PutRegistrationRaw(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

PutRegistrationRaw indicates an expected call of PutRegistrationRaw.

type MockRelay

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

MockRelay is a mock of Relay interface.

func NewMockRelay

func NewMockRelay(ctrl *gomock.Controller) *MockRelay

NewMockRelay creates a new mock instance.

func (*MockRelay) AttachMetrics

func (m *MockRelay) AttachMetrics(arg0 *metrics.Metrics)

AttachMetrics mocks base method.

func (*MockRelay) EXPECT

func (m *MockRelay) EXPECT() *MockRelayMockRecorder

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

func (*MockRelay) GetHeader

GetHeader mocks base method.

func (*MockRelay) GetPayload

GetPayload mocks base method.

func (*MockRelay) GetValidators

GetValidators mocks base method.

func (*MockRelay) RegisterValidator

func (m *MockRelay) RegisterValidator(arg0 context.Context, arg1 []structs.SignedValidatorRegistration) error

RegisterValidator mocks base method.

func (*MockRelay) SubmitBlock

func (m *MockRelay) SubmitBlock(arg0 context.Context, arg1 *types.BuilderSubmitBlockRequest) error

SubmitBlock mocks base method.

type MockRelayMockRecorder

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

MockRelayMockRecorder is the mock recorder for MockRelay.

func (*MockRelayMockRecorder) AttachMetrics

func (mr *MockRelayMockRecorder) AttachMetrics(arg0 interface{}) *gomock.Call

AttachMetrics indicates an expected call of AttachMetrics.

func (*MockRelayMockRecorder) GetHeader

func (mr *MockRelayMockRecorder) GetHeader(arg0, arg1 interface{}) *gomock.Call

GetHeader indicates an expected call of GetHeader.

func (*MockRelayMockRecorder) GetPayload

func (mr *MockRelayMockRecorder) GetPayload(arg0, arg1 interface{}) *gomock.Call

GetPayload indicates an expected call of GetPayload.

func (*MockRelayMockRecorder) GetValidators

func (mr *MockRelayMockRecorder) GetValidators() *gomock.Call

GetValidators indicates an expected call of GetValidators.

func (*MockRelayMockRecorder) RegisterValidator

func (mr *MockRelayMockRecorder) RegisterValidator(arg0, arg1 interface{}) *gomock.Call

RegisterValidator indicates an expected call of RegisterValidator.

func (*MockRelayMockRecorder) SubmitBlock

func (mr *MockRelayMockRecorder) SubmitBlock(arg0, arg1 interface{}) *gomock.Call

SubmitBlock indicates an expected call of SubmitBlock.

Jump to

Keyboard shortcuts

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