mocks

package
v0.6.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: AGPL-3.0 Imports: 9 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 MockAuctioneer

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

MockAuctioneer is a mock of Auctioneer interface.

func NewMockAuctioneer

func NewMockAuctioneer(ctrl *gomock.Controller) *MockAuctioneer

NewMockAuctioneer creates a new mock instance.

func (*MockAuctioneer) AddBlock

func (m *MockAuctioneer) AddBlock(arg0 structs.BuilderBidExtended) bool

AddBlock mocks base method.

func (*MockAuctioneer) EXPECT

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

func (*MockAuctioneer) MaxProfitBlock

func (m *MockAuctioneer) MaxProfitBlock(arg0 structs.Slot, arg1 types0.Hash) (structs.BuilderBidExtended, bool)

MaxProfitBlock mocks base method.

type MockAuctioneerMockRecorder

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

MockAuctioneerMockRecorder is the mock recorder for MockAuctioneer.

func (*MockAuctioneerMockRecorder) AddBlock

func (mr *MockAuctioneerMockRecorder) AddBlock(arg0 interface{}) *gomock.Call

AddBlock indicates an expected call of AddBlock.

func (*MockAuctioneerMockRecorder) MaxProfitBlock

func (mr *MockAuctioneerMockRecorder) MaxProfitBlock(arg0, arg1 interface{}) *gomock.Call

MaxProfitBlock indicates an expected call of MaxProfitBlock.

type MockBeacon

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

MockBeacon is a mock of Beacon interface.

func NewMockBeacon

func NewMockBeacon(ctrl *gomock.Controller) *MockBeacon

NewMockBeacon creates a new mock instance.

func (*MockBeacon) EXPECT

func (m *MockBeacon) EXPECT() *MockBeaconMockRecorder

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

func (*MockBeacon) PublishBlock

func (m *MockBeacon) PublishBlock(arg0 context.Context, arg1 structs.SignedBeaconBlock) error

PublishBlock mocks base method.

type MockBeaconMockRecorder

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

MockBeaconMockRecorder is the mock recorder for MockBeacon.

func (*MockBeaconMockRecorder) PublishBlock

func (mr *MockBeaconMockRecorder) PublishBlock(arg0, arg1 interface{}) *gomock.Call

PublishBlock indicates an expected call of PublishBlock.

type MockBlockValidationClient

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

MockBlockValidationClient is a mock of BlockValidationClient interface.

func NewMockBlockValidationClient

func NewMockBlockValidationClient(ctrl *gomock.Controller) *MockBlockValidationClient

NewMockBlockValidationClient creates a new mock instance.

func (*MockBlockValidationClient) EXPECT

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

func (*MockBlockValidationClient) IsSet

func (m *MockBlockValidationClient) IsSet() bool

IsSet mocks base method.

func (*MockBlockValidationClient) ValidateBlock

ValidateBlock mocks base method.

func (*MockBlockValidationClient) ValidateBlockV2

ValidateBlockV2 mocks base method.

type MockBlockValidationClientMockRecorder

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

MockBlockValidationClientMockRecorder is the mock recorder for MockBlockValidationClient.

func (*MockBlockValidationClientMockRecorder) IsSet

IsSet indicates an expected call of IsSet.

func (*MockBlockValidationClientMockRecorder) ValidateBlock

func (mr *MockBlockValidationClientMockRecorder) ValidateBlock(arg0, arg1 interface{}) *gomock.Call

ValidateBlock indicates an expected call of ValidateBlock.

func (*MockBlockValidationClientMockRecorder) ValidateBlockV2

func (mr *MockBlockValidationClientMockRecorder) ValidateBlockV2(arg0, arg1 interface{}) *gomock.Call

ValidateBlockV2 indicates an expected call of ValidateBlockV2.

type MockDataAPIStore

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

MockDataAPIStore is a mock of DataAPIStore interface.

func NewMockDataAPIStore

func NewMockDataAPIStore(ctrl *gomock.Controller) *MockDataAPIStore

NewMockDataAPIStore creates a new mock instance.

func (*MockDataAPIStore) EXPECT

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

func (*MockDataAPIStore) GetBuilderBlockSubmissions

func (m *MockDataAPIStore) GetBuilderBlockSubmissions(arg0 context.Context, arg1 io.Writer, arg2 uint64, arg3 structs.SubmissionTraceQuery) error

GetBuilderBlockSubmissions mocks base method.

func (*MockDataAPIStore) GetDeliveredPayloads

func (m *MockDataAPIStore) GetDeliveredPayloads(arg0 context.Context, arg1 io.Writer, arg2 uint64, arg3 structs.PayloadTraceQuery) error

GetDeliveredPayloads mocks base method.

func (*MockDataAPIStore) PutBuilderBlockSubmission

func (m *MockDataAPIStore) PutBuilderBlockSubmission(arg0 context.Context, arg1 structs.BidTraceWithTimestamp, arg2 bool) error

PutBuilderBlockSubmission mocks base method.

func (*MockDataAPIStore) PutDelivered

func (m *MockDataAPIStore) PutDelivered(arg0 context.Context, arg1 structs.Slot, arg2 structs.DeliveredTrace) error

PutDelivered mocks base method.

type MockDataAPIStoreMockRecorder

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

MockDataAPIStoreMockRecorder is the mock recorder for MockDataAPIStore.

func (*MockDataAPIStoreMockRecorder) GetBuilderBlockSubmissions

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

GetBuilderBlockSubmissions indicates an expected call of GetBuilderBlockSubmissions.

func (*MockDataAPIStoreMockRecorder) GetDeliveredPayloads

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

GetDeliveredPayloads indicates an expected call of GetDeliveredPayloads.

func (*MockDataAPIStoreMockRecorder) PutBuilderBlockSubmission

func (mr *MockDataAPIStoreMockRecorder) PutBuilderBlockSubmission(arg0, arg1, arg2 interface{}) *gomock.Call

PutBuilderBlockSubmission indicates an expected call of PutBuilderBlockSubmission.

func (*MockDataAPIStoreMockRecorder) PutDelivered

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

PutDelivered indicates an expected call of PutDelivered.

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

GetPayload mocks base method.

func (*MockDatastore) PutPayload

PutPayload mocks base method.

type MockDatastoreMockRecorder

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

MockDatastoreMockRecorder is the mock recorder for MockDatastore.

func (*MockDatastoreMockRecorder) GetPayload

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

GetPayload indicates an expected call of GetPayload.

func (*MockDatastoreMockRecorder) PutPayload

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

PutPayload indicates an expected call of PutPayload.

type MockPayloadCache added in v0.6.0

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

MockPayloadCache is a mock of PayloadCache interface.

func NewMockPayloadCache added in v0.6.0

func NewMockPayloadCache(ctrl *gomock.Controller) *MockPayloadCache

NewMockPayloadCache creates a new mock instance.

func (*MockPayloadCache) Add added in v0.6.0

Add mocks base method.

func (*MockPayloadCache) ContainsOrAdd added in v0.6.0

func (m *MockPayloadCache) ContainsOrAdd(arg0 structs.PayloadKey, arg1 structs.BlockAndTraceExtended) (bool, bool)

ContainsOrAdd mocks base method.

func (*MockPayloadCache) EXPECT added in v0.6.0

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

func (*MockPayloadCache) Get added in v0.6.0

Get mocks base method.

type MockPayloadCacheMockRecorder added in v0.6.0

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

MockPayloadCacheMockRecorder is the mock recorder for MockPayloadCache.

func (*MockPayloadCacheMockRecorder) Add added in v0.6.0

func (mr *MockPayloadCacheMockRecorder) Add(arg0, arg1 interface{}) *gomock.Call

Add indicates an expected call of Add.

func (*MockPayloadCacheMockRecorder) ContainsOrAdd added in v0.6.0

func (mr *MockPayloadCacheMockRecorder) ContainsOrAdd(arg0, arg1 interface{}) *gomock.Call

ContainsOrAdd indicates an expected call of ContainsOrAdd.

func (*MockPayloadCacheMockRecorder) Get added in v0.6.0

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

Get indicates an expected call of Get.

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

func (m *MockState) EXPECT() *MockStateMockRecorder

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

func (*MockState) ForkVersion

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

ForkVersion mocks base method.

func (*MockState) Genesis

func (m *MockState) Genesis() structs.GenesisInfo

Genesis mocks base method.

func (*MockState) HeadSlot

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

HeadSlot mocks base method.

func (*MockState) KnownValidators

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

KnownValidators mocks base method.

func (*MockState) Randao

func (m *MockState) Randao(arg0 uint64, arg1 types0.Hash) structs.RandaoState

Randao mocks base method.

func (*MockState) Withdrawals

func (m *MockState) Withdrawals(arg0 uint64, arg1 types0.Hash) 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) ForkVersion

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

ForkVersion indicates an expected call of ForkVersion.

func (*MockStateMockRecorder) Genesis

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

Genesis indicates an expected call of Genesis.

func (*MockStateMockRecorder) HeadSlot

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

HeadSlot indicates an expected call of HeadSlot.

func (*MockStateMockRecorder) KnownValidators

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

KnownValidators indicates an expected call of KnownValidators.

func (*MockStateMockRecorder) Randao

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

Randao indicates an expected call of Randao.

func (*MockStateMockRecorder) Withdrawals

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

Withdrawals indicates an expected call of Withdrawals.

type MockStreamer added in v0.6.0

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

MockStreamer is a mock of Streamer interface.

func NewMockStreamer added in v0.6.0

func NewMockStreamer(ctrl *gomock.Controller) *MockStreamer

NewMockStreamer creates a new mock instance.

func (*MockStreamer) BlockCache added in v0.6.0

func (m *MockStreamer) BlockCache() <-chan structs.BlockAndTraceExtended

BlockCache mocks base method.

func (*MockStreamer) BuilderBid added in v0.6.0

func (m *MockStreamer) BuilderBid() <-chan structs.BuilderBidExtended

BuilderBid mocks base method.

func (*MockStreamer) EXPECT added in v0.6.0

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

func (*MockStreamer) PublishBlockCache added in v0.6.0

func (m *MockStreamer) PublishBlockCache(arg0 context.Context, arg1 structs.BlockAndTraceExtended) error

PublishBlockCache mocks base method.

func (*MockStreamer) PublishBuilderBid added in v0.6.0

func (m *MockStreamer) PublishBuilderBid(arg0 context.Context, arg1 structs.BuilderBidExtended) error

PublishBuilderBid mocks base method.

type MockStreamerMockRecorder added in v0.6.0

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

MockStreamerMockRecorder is the mock recorder for MockStreamer.

func (*MockStreamerMockRecorder) BlockCache added in v0.6.0

func (mr *MockStreamerMockRecorder) BlockCache() *gomock.Call

BlockCache indicates an expected call of BlockCache.

func (*MockStreamerMockRecorder) BuilderBid added in v0.6.0

func (mr *MockStreamerMockRecorder) BuilderBid() *gomock.Call

BuilderBid indicates an expected call of BuilderBid.

func (*MockStreamerMockRecorder) PublishBlockCache added in v0.6.0

func (mr *MockStreamerMockRecorder) PublishBlockCache(arg0, arg1 interface{}) *gomock.Call

PublishBlockCache indicates an expected call of PublishBlockCache.

func (*MockStreamerMockRecorder) PublishBuilderBid added in v0.6.0

func (mr *MockStreamerMockRecorder) PublishBuilderBid(arg0, arg1 interface{}) *gomock.Call

PublishBuilderBid indicates an expected call of PublishBuilderBid.

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

Add mocks base method.

func (*MockValidatorCache) EXPECT

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

func (*MockValidatorCache) Get

Get mocks base method.

func (*MockValidatorCache) Remove

func (m *MockValidatorCache) Remove(arg0 types0.PublicKey) bool

Remove mocks base method.

type MockValidatorCacheMockRecorder

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

MockValidatorCacheMockRecorder is the mock recorder for MockValidatorCache.

func (*MockValidatorCacheMockRecorder) Add

func (mr *MockValidatorCacheMockRecorder) Add(arg0, arg1 interface{}) *gomock.Call

Add indicates an expected call of Add.

func (*MockValidatorCacheMockRecorder) Get

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

Get indicates an expected call of Get.

func (*MockValidatorCacheMockRecorder) Remove

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

Remove indicates an expected call of Remove.

type MockValidatorStore

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

MockValidatorStore is a mock of ValidatorStore interface.

func NewMockValidatorStore

func NewMockValidatorStore(ctrl *gomock.Controller) *MockValidatorStore

NewMockValidatorStore creates a new mock instance.

func (*MockValidatorStore) EXPECT

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

func (*MockValidatorStore) GetRegistration

GetRegistration mocks base method.

type MockValidatorStoreMockRecorder

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

MockValidatorStoreMockRecorder is the mock recorder for MockValidatorStore.

func (*MockValidatorStoreMockRecorder) GetRegistration

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

GetRegistration indicates an expected call of GetRegistration.

type MockVerifier

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

MockVerifier is a mock of Verifier interface.

func NewMockVerifier

func NewMockVerifier(ctrl *gomock.Controller) *MockVerifier

NewMockVerifier creates a new mock instance.

func (*MockVerifier) EXPECT

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

func (*MockVerifier) Enqueue

func (m *MockVerifier) Enqueue(arg0 context.Context, arg1 [96]byte, arg2 [48]byte, arg3 [32]byte) error

Enqueue mocks base method.

type MockVerifierMockRecorder

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

MockVerifierMockRecorder is the mock recorder for MockVerifier.

func (*MockVerifierMockRecorder) Enqueue

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

Enqueue indicates an expected call of Enqueue.

type MockWarehouse added in v0.6.0

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

MockWarehouse is a mock of Warehouse interface.

func NewMockWarehouse added in v0.6.0

func NewMockWarehouse(ctrl *gomock.Controller) *MockWarehouse

NewMockWarehouse creates a new mock instance.

func (*MockWarehouse) EXPECT added in v0.6.0

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

func (*MockWarehouse) StoreAsync added in v0.6.0

func (m *MockWarehouse) StoreAsync(arg0 context.Context, arg1 warehouse.StoreRequest) error

StoreAsync mocks base method.

type MockWarehouseMockRecorder added in v0.6.0

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

MockWarehouseMockRecorder is the mock recorder for MockWarehouse.

func (*MockWarehouseMockRecorder) StoreAsync added in v0.6.0

func (mr *MockWarehouseMockRecorder) StoreAsync(arg0, arg1 interface{}) *gomock.Call

StoreAsync indicates an expected call of StoreAsync.

Jump to

Keyboard shortcuts

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