Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockDatastore
- func (m *MockDatastore) CacheBlock(arg0 context.Context, arg1 *structs.CompleteBlockstruct) error
- func (m *MockDatastore) CheckSlotDelivered(arg0 context.Context, arg1 uint64) (bool, error)
- func (m *MockDatastore) EXPECT() *MockDatastoreMockRecorder
- func (m *MockDatastore) GetDelivered(arg0 context.Context, arg1 structs.PayloadQuery) (structs.BidTraceWithTimestamp, error)
- func (m *MockDatastore) GetDeliveredBatch(arg0 context.Context, arg1 []structs.PayloadQuery) ([]structs.BidTraceWithTimestamp, error)
- func (m *MockDatastore) GetHeadersByBlockHash(arg0 context.Context, arg1 types.Hash) ([]structs.HeaderAndTrace, error)
- func (m *MockDatastore) GetHeadersByBlockNum(arg0 context.Context, arg1 uint64) ([]structs.HeaderAndTrace, error)
- func (m *MockDatastore) GetHeadersBySlot(arg0 context.Context, arg1 uint64) ([]structs.HeaderAndTrace, error)
- func (m *MockDatastore) GetLatestHeaders(arg0 context.Context, arg1, arg2 uint64) ([]structs.HeaderAndTrace, error)
- func (m *MockDatastore) GetMaxProfitHeader(arg0 context.Context, arg1 uint64) (structs.HeaderAndTrace, error)
- func (m *MockDatastore) GetPayload(arg0 context.Context, arg1 structs.PayloadKey) (*structs.BlockBidAndTrace, bool, error)
- func (m *MockDatastore) PutDelivered(arg0 context.Context, arg1 structs.Slot, arg2 structs.DeliveredTrace, ...) error
- func (m *MockDatastore) PutHeader(arg0 context.Context, arg1 structs.HeaderData, arg2 time.Duration) error
- func (m *MockDatastore) PutPayload(arg0 context.Context, arg1 structs.PayloadKey, arg2 *structs.BlockBidAndTrace, ...) error
- type MockDatastoreMockRecorder
- func (mr *MockDatastoreMockRecorder) CacheBlock(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) CheckSlotDelivered(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) GetDelivered(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) GetDeliveredBatch(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) GetHeadersByBlockHash(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) GetHeadersByBlockNum(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) GetHeadersBySlot(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) GetLatestHeaders(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) GetMaxProfitHeader(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) GetPayload(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) PutDelivered(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) PutHeader(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) PutPayload(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- type MockState
- type MockStateMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) CacheBlock ¶ added in v0.3.4
func (m *MockDatastore) CacheBlock(arg0 context.Context, arg1 *structs.CompleteBlockstruct) error
CacheBlock mocks base method
func (*MockDatastore) CheckSlotDelivered ¶
CheckSlotDelivered mocks base method
func (*MockDatastore) EXPECT ¶
func (m *MockDatastore) EXPECT() *MockDatastoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockDatastore) GetDelivered ¶
func (m *MockDatastore) GetDelivered(arg0 context.Context, arg1 structs.PayloadQuery) (structs.BidTraceWithTimestamp, error)
GetDelivered mocks base method
func (*MockDatastore) GetDeliveredBatch ¶ added in v0.3.9
func (m *MockDatastore) GetDeliveredBatch(arg0 context.Context, arg1 []structs.PayloadQuery) ([]structs.BidTraceWithTimestamp, error)
GetDeliveredBatch mocks base method
func (*MockDatastore) GetHeadersByBlockHash ¶ added in v0.3.9
func (m *MockDatastore) GetHeadersByBlockHash(arg0 context.Context, arg1 types.Hash) ([]structs.HeaderAndTrace, error)
GetHeadersByBlockHash mocks base method
func (*MockDatastore) GetHeadersByBlockNum ¶ added in v0.3.9
func (m *MockDatastore) GetHeadersByBlockNum(arg0 context.Context, arg1 uint64) ([]structs.HeaderAndTrace, error)
GetHeadersByBlockNum mocks base method
func (*MockDatastore) GetHeadersBySlot ¶ added in v0.3.9
func (m *MockDatastore) GetHeadersBySlot(arg0 context.Context, arg1 uint64) ([]structs.HeaderAndTrace, error)
GetHeadersBySlot mocks base method
func (*MockDatastore) GetLatestHeaders ¶ added in v0.3.9
func (m *MockDatastore) GetLatestHeaders(arg0 context.Context, arg1, arg2 uint64) ([]structs.HeaderAndTrace, error)
GetLatestHeaders mocks base method
func (*MockDatastore) GetMaxProfitHeader ¶
func (m *MockDatastore) GetMaxProfitHeader(arg0 context.Context, arg1 uint64) (structs.HeaderAndTrace, error)
GetMaxProfitHeader mocks base method
func (*MockDatastore) GetPayload ¶
func (m *MockDatastore) GetPayload(arg0 context.Context, arg1 structs.PayloadKey) (*structs.BlockBidAndTrace, bool, error)
GetPayload 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) PutHeader ¶
func (m *MockDatastore) PutHeader(arg0 context.Context, arg1 structs.HeaderData, arg2 time.Duration) error
PutHeader 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
type MockDatastoreMockRecorder ¶
type MockDatastoreMockRecorder struct {
// contains filtered or unexported fields
}
MockDatastoreMockRecorder is the mock recorder for MockDatastore
func (*MockDatastoreMockRecorder) CacheBlock ¶ added in v0.3.4
func (mr *MockDatastoreMockRecorder) CacheBlock(arg0, arg1 interface{}) *gomock.Call
CacheBlock indicates an expected call of CacheBlock
func (*MockDatastoreMockRecorder) CheckSlotDelivered ¶
func (mr *MockDatastoreMockRecorder) CheckSlotDelivered(arg0, arg1 interface{}) *gomock.Call
CheckSlotDelivered indicates an expected call of CheckSlotDelivered
func (*MockDatastoreMockRecorder) GetDelivered ¶
func (mr *MockDatastoreMockRecorder) GetDelivered(arg0, arg1 interface{}) *gomock.Call
GetDelivered indicates an expected call of GetDelivered
func (*MockDatastoreMockRecorder) GetDeliveredBatch ¶ added in v0.3.9
func (mr *MockDatastoreMockRecorder) GetDeliveredBatch(arg0, arg1 interface{}) *gomock.Call
GetDeliveredBatch indicates an expected call of GetDeliveredBatch
func (*MockDatastoreMockRecorder) GetHeadersByBlockHash ¶ added in v0.3.9
func (mr *MockDatastoreMockRecorder) GetHeadersByBlockHash(arg0, arg1 interface{}) *gomock.Call
GetHeadersByBlockHash indicates an expected call of GetHeadersByBlockHash
func (*MockDatastoreMockRecorder) GetHeadersByBlockNum ¶ added in v0.3.9
func (mr *MockDatastoreMockRecorder) GetHeadersByBlockNum(arg0, arg1 interface{}) *gomock.Call
GetHeadersByBlockNum indicates an expected call of GetHeadersByBlockNum
func (*MockDatastoreMockRecorder) GetHeadersBySlot ¶ added in v0.3.9
func (mr *MockDatastoreMockRecorder) GetHeadersBySlot(arg0, arg1 interface{}) *gomock.Call
GetHeadersBySlot indicates an expected call of GetHeadersBySlot
func (*MockDatastoreMockRecorder) GetLatestHeaders ¶ added in v0.3.9
func (mr *MockDatastoreMockRecorder) GetLatestHeaders(arg0, arg1, arg2 interface{}) *gomock.Call
GetLatestHeaders indicates an expected call of GetLatestHeaders
func (*MockDatastoreMockRecorder) GetMaxProfitHeader ¶
func (mr *MockDatastoreMockRecorder) GetMaxProfitHeader(arg0, arg1 interface{}) *gomock.Call
GetMaxProfitHeader indicates an expected call of GetMaxProfitHeader
func (*MockDatastoreMockRecorder) GetPayload ¶
func (mr *MockDatastoreMockRecorder) GetPayload(arg0, arg1 interface{}) *gomock.Call
GetPayload indicates an expected call of GetPayload
func (*MockDatastoreMockRecorder) PutDelivered ¶
func (mr *MockDatastoreMockRecorder) PutDelivered(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
PutDelivered indicates an expected call of PutDelivered
func (*MockDatastoreMockRecorder) PutHeader ¶
func (mr *MockDatastoreMockRecorder) PutHeader(arg0, arg1, arg2 interface{}) *gomock.Call
PutHeader indicates an expected call of PutHeader
func (*MockDatastoreMockRecorder) PutPayload ¶
func (mr *MockDatastoreMockRecorder) PutPayload(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
PutPayload indicates an expected call of PutPayload
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) Beacon ¶
func (m *MockState) Beacon() *structs.BeaconState
Beacon mocks base method
func (*MockState) EXPECT ¶
func (m *MockState) EXPECT() *MockStateMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockStateMockRecorder ¶
type MockStateMockRecorder struct {
// contains filtered or unexported fields
}
MockStateMockRecorder is the mock recorder for MockState
func (*MockStateMockRecorder) Beacon ¶
func (mr *MockStateMockRecorder) Beacon() *gomock.Call
Beacon indicates an expected call of Beacon