Documentation
¶
Index ¶
- type Downloader
- func (_mock *Downloader) Done() <-chan struct{}
- func (_m *Downloader) EXPECT() *Downloader_Expecter
- func (_mock *Downloader) Get(ctx context.Context, rootID flow.Identifier) (*execution_data.BlockExecutionData, error)
- func (_mock *Downloader) HighestCompleteHeight() uint64
- func (_mock *Downloader) OnBlockProcessed(v uint64)
- func (_mock *Downloader) Ready() <-chan struct{}
- func (_mock *Downloader) SetHeightUpdatesConsumer(heightUpdatesConsumer execution_data.HeightUpdatesConsumer)
- type Downloader_Done_Call
- type Downloader_Expecter
- func (_e *Downloader_Expecter) Done() *Downloader_Done_Call
- func (_e *Downloader_Expecter) Get(ctx interface{}, rootID interface{}) *Downloader_Get_Call
- func (_e *Downloader_Expecter) HighestCompleteHeight() *Downloader_HighestCompleteHeight_Call
- func (_e *Downloader_Expecter) OnBlockProcessed(v interface{}) *Downloader_OnBlockProcessed_Call
- func (_e *Downloader_Expecter) Ready() *Downloader_Ready_Call
- func (_e *Downloader_Expecter) SetHeightUpdatesConsumer(heightUpdatesConsumer interface{}) *Downloader_SetHeightUpdatesConsumer_Call
- type Downloader_Get_Call
- func (_c *Downloader_Get_Call) Return(blockExecutionData *execution_data.BlockExecutionData, err error) *Downloader_Get_Call
- func (_c *Downloader_Get_Call) Run(run func(ctx context.Context, rootID flow.Identifier)) *Downloader_Get_Call
- func (_c *Downloader_Get_Call) RunAndReturn(...) *Downloader_Get_Call
- type Downloader_HighestCompleteHeight_Call
- func (_c *Downloader_HighestCompleteHeight_Call) Return(v uint64) *Downloader_HighestCompleteHeight_Call
- func (_c *Downloader_HighestCompleteHeight_Call) Run(run func()) *Downloader_HighestCompleteHeight_Call
- func (_c *Downloader_HighestCompleteHeight_Call) RunAndReturn(run func() uint64) *Downloader_HighestCompleteHeight_Call
- type Downloader_OnBlockProcessed_Call
- type Downloader_Ready_Call
- type Downloader_SetHeightUpdatesConsumer_Call
- func (_c *Downloader_SetHeightUpdatesConsumer_Call) Return() *Downloader_SetHeightUpdatesConsumer_Call
- func (_c *Downloader_SetHeightUpdatesConsumer_Call) Run(run func(heightUpdatesConsumer execution_data.HeightUpdatesConsumer)) *Downloader_SetHeightUpdatesConsumer_Call
- func (_c *Downloader_SetHeightUpdatesConsumer_Call) RunAndReturn(run func(heightUpdatesConsumer execution_data.HeightUpdatesConsumer)) *Downloader_SetHeightUpdatesConsumer_Call
- type ExecutionDataCache
- func (_mock *ExecutionDataCache) ByBlockID(ctx context.Context, blockID flow.Identifier) (*execution_data.BlockExecutionDataEntity, error)
- func (_mock *ExecutionDataCache) ByHeight(ctx context.Context, height uint64) (*execution_data.BlockExecutionDataEntity, error)
- func (_mock *ExecutionDataCache) ByID(ctx context.Context, executionDataID flow.Identifier) (*execution_data.BlockExecutionDataEntity, error)
- func (_m *ExecutionDataCache) EXPECT() *ExecutionDataCache_Expecter
- func (_mock *ExecutionDataCache) LookupID(blockID flow.Identifier) (flow.Identifier, error)
- type ExecutionDataCache_ByBlockID_Call
- func (_c *ExecutionDataCache_ByBlockID_Call) Return(blockExecutionDataEntity *execution_data.BlockExecutionDataEntity, err error) *ExecutionDataCache_ByBlockID_Call
- func (_c *ExecutionDataCache_ByBlockID_Call) Run(run func(ctx context.Context, blockID flow.Identifier)) *ExecutionDataCache_ByBlockID_Call
- func (_c *ExecutionDataCache_ByBlockID_Call) RunAndReturn(...) *ExecutionDataCache_ByBlockID_Call
- type ExecutionDataCache_ByHeight_Call
- func (_c *ExecutionDataCache_ByHeight_Call) Return(blockExecutionDataEntity *execution_data.BlockExecutionDataEntity, err error) *ExecutionDataCache_ByHeight_Call
- func (_c *ExecutionDataCache_ByHeight_Call) Run(run func(ctx context.Context, height uint64)) *ExecutionDataCache_ByHeight_Call
- func (_c *ExecutionDataCache_ByHeight_Call) RunAndReturn(...) *ExecutionDataCache_ByHeight_Call
- type ExecutionDataCache_ByID_Call
- func (_c *ExecutionDataCache_ByID_Call) Return(blockExecutionDataEntity *execution_data.BlockExecutionDataEntity, err error) *ExecutionDataCache_ByID_Call
- func (_c *ExecutionDataCache_ByID_Call) Run(run func(ctx context.Context, executionDataID flow.Identifier)) *ExecutionDataCache_ByID_Call
- func (_c *ExecutionDataCache_ByID_Call) RunAndReturn(...) *ExecutionDataCache_ByID_Call
- type ExecutionDataCache_Expecter
- func (_e *ExecutionDataCache_Expecter) ByBlockID(ctx interface{}, blockID interface{}) *ExecutionDataCache_ByBlockID_Call
- func (_e *ExecutionDataCache_Expecter) ByHeight(ctx interface{}, height interface{}) *ExecutionDataCache_ByHeight_Call
- func (_e *ExecutionDataCache_Expecter) ByID(ctx interface{}, executionDataID interface{}) *ExecutionDataCache_ByID_Call
- func (_e *ExecutionDataCache_Expecter) LookupID(blockID interface{}) *ExecutionDataCache_LookupID_Call
- type ExecutionDataCache_LookupID_Call
- func (_c *ExecutionDataCache_LookupID_Call) Return(identifier flow.Identifier, err error) *ExecutionDataCache_LookupID_Call
- func (_c *ExecutionDataCache_LookupID_Call) Run(run func(blockID flow.Identifier)) *ExecutionDataCache_LookupID_Call
- func (_c *ExecutionDataCache_LookupID_Call) RunAndReturn(run func(blockID flow.Identifier) (flow.Identifier, error)) *ExecutionDataCache_LookupID_Call
- type ExecutionDataGetter
- type ExecutionDataGetter_Expecter
- type ExecutionDataGetter_Get_Call
- func (_c *ExecutionDataGetter_Get_Call) Return(blockExecutionData *execution_data.BlockExecutionData, err error) *ExecutionDataGetter_Get_Call
- func (_c *ExecutionDataGetter_Get_Call) Run(run func(ctx context.Context, rootID flow.Identifier)) *ExecutionDataGetter_Get_Call
- func (_c *ExecutionDataGetter_Get_Call) RunAndReturn(...) *ExecutionDataGetter_Get_Call
- type ExecutionDataStore
- func (_mock *ExecutionDataStore) Add(ctx context.Context, executionData *execution_data.BlockExecutionData) (flow.Identifier, error)
- func (_m *ExecutionDataStore) EXPECT() *ExecutionDataStore_Expecter
- func (_mock *ExecutionDataStore) Get(ctx context.Context, rootID flow.Identifier) (*execution_data.BlockExecutionData, error)
- type ExecutionDataStore_Add_Call
- type ExecutionDataStore_Expecter
- type ExecutionDataStore_Get_Call
- func (_c *ExecutionDataStore_Get_Call) Return(blockExecutionData *execution_data.BlockExecutionData, err error) *ExecutionDataStore_Get_Call
- func (_c *ExecutionDataStore_Get_Call) Run(run func(ctx context.Context, rootID flow.Identifier)) *ExecutionDataStore_Get_Call
- func (_c *ExecutionDataStore_Get_Call) RunAndReturn(...) *ExecutionDataStore_Get_Call
- type ProcessedHeightRecorder
- func (_m *ProcessedHeightRecorder) EXPECT() *ProcessedHeightRecorder_Expecter
- func (_mock *ProcessedHeightRecorder) HighestCompleteHeight() uint64
- func (_mock *ProcessedHeightRecorder) OnBlockProcessed(v uint64)
- func (_mock *ProcessedHeightRecorder) SetHeightUpdatesConsumer(heightUpdatesConsumer execution_data.HeightUpdatesConsumer)
- type ProcessedHeightRecorder_Expecter
- func (_e *ProcessedHeightRecorder_Expecter) HighestCompleteHeight() *ProcessedHeightRecorder_HighestCompleteHeight_Call
- func (_e *ProcessedHeightRecorder_Expecter) OnBlockProcessed(v interface{}) *ProcessedHeightRecorder_OnBlockProcessed_Call
- func (_e *ProcessedHeightRecorder_Expecter) SetHeightUpdatesConsumer(heightUpdatesConsumer interface{}) *ProcessedHeightRecorder_SetHeightUpdatesConsumer_Call
- type ProcessedHeightRecorder_HighestCompleteHeight_Call
- func (_c *ProcessedHeightRecorder_HighestCompleteHeight_Call) Return(v uint64) *ProcessedHeightRecorder_HighestCompleteHeight_Call
- func (_c *ProcessedHeightRecorder_HighestCompleteHeight_Call) Run(run func()) *ProcessedHeightRecorder_HighestCompleteHeight_Call
- func (_c *ProcessedHeightRecorder_HighestCompleteHeight_Call) RunAndReturn(run func() uint64) *ProcessedHeightRecorder_HighestCompleteHeight_Call
- type ProcessedHeightRecorder_OnBlockProcessed_Call
- func (_c *ProcessedHeightRecorder_OnBlockProcessed_Call) Return() *ProcessedHeightRecorder_OnBlockProcessed_Call
- func (_c *ProcessedHeightRecorder_OnBlockProcessed_Call) Run(run func(v uint64)) *ProcessedHeightRecorder_OnBlockProcessed_Call
- func (_c *ProcessedHeightRecorder_OnBlockProcessed_Call) RunAndReturn(run func(v uint64)) *ProcessedHeightRecorder_OnBlockProcessed_Call
- type ProcessedHeightRecorder_SetHeightUpdatesConsumer_Call
- func (_c *ProcessedHeightRecorder_SetHeightUpdatesConsumer_Call) Return() *ProcessedHeightRecorder_SetHeightUpdatesConsumer_Call
- func (_c *ProcessedHeightRecorder_SetHeightUpdatesConsumer_Call) Run(run func(heightUpdatesConsumer execution_data.HeightUpdatesConsumer)) *ProcessedHeightRecorder_SetHeightUpdatesConsumer_Call
- func (_c *ProcessedHeightRecorder_SetHeightUpdatesConsumer_Call) RunAndReturn(run func(heightUpdatesConsumer execution_data.HeightUpdatesConsumer)) *ProcessedHeightRecorder_SetHeightUpdatesConsumer_Call
- type Serializer
- type Serializer_Deserialize_Call
- func (_c *Serializer_Deserialize_Call) Return(ifaceVal interface{}, err error) *Serializer_Deserialize_Call
- func (_c *Serializer_Deserialize_Call) Run(run func(reader io.Reader)) *Serializer_Deserialize_Call
- func (_c *Serializer_Deserialize_Call) RunAndReturn(run func(reader io.Reader) (interface{}, error)) *Serializer_Deserialize_Call
- type Serializer_Expecter
- type Serializer_Serialize_Call
- func (_c *Serializer_Serialize_Call) Return(err error) *Serializer_Serialize_Call
- func (_c *Serializer_Serialize_Call) Run(run func(writer io.Writer, ifaceVal interface{})) *Serializer_Serialize_Call
- func (_c *Serializer_Serialize_Call) RunAndReturn(run func(writer io.Writer, ifaceVal interface{}) error) *Serializer_Serialize_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Downloader ¶
Downloader is an autogenerated mock type for the Downloader type
func NewDownloader ¶
func NewDownloader(t interface {
mock.TestingT
Cleanup(func())
}) *Downloader
NewDownloader creates a new instance of Downloader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Downloader) Done ¶
func (_mock *Downloader) Done() <-chan struct{}
Done provides a mock function for the type Downloader
func (*Downloader) EXPECT ¶ added in v0.46.0
func (_m *Downloader) EXPECT() *Downloader_Expecter
func (*Downloader) Get ¶ added in v0.31.0
func (_mock *Downloader) Get(ctx context.Context, rootID flow.Identifier) (*execution_data.BlockExecutionData, error)
Get provides a mock function for the type Downloader
func (*Downloader) HighestCompleteHeight ¶ added in v0.37.1
func (_mock *Downloader) HighestCompleteHeight() uint64
HighestCompleteHeight provides a mock function for the type Downloader
func (*Downloader) OnBlockProcessed ¶ added in v0.37.1
func (_mock *Downloader) OnBlockProcessed(v uint64)
OnBlockProcessed provides a mock function for the type Downloader
func (*Downloader) Ready ¶
func (_mock *Downloader) Ready() <-chan struct{}
Ready provides a mock function for the type Downloader
func (*Downloader) SetHeightUpdatesConsumer ¶ added in v0.37.22
func (_mock *Downloader) SetHeightUpdatesConsumer(heightUpdatesConsumer execution_data.HeightUpdatesConsumer)
SetHeightUpdatesConsumer provides a mock function for the type Downloader
type Downloader_Done_Call ¶ added in v0.46.0
Downloader_Done_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Done'
func (*Downloader_Done_Call) Return ¶ added in v0.46.0
func (_c *Downloader_Done_Call) Return(valCh <-chan struct{}) *Downloader_Done_Call
func (*Downloader_Done_Call) Run ¶ added in v0.46.0
func (_c *Downloader_Done_Call) Run(run func()) *Downloader_Done_Call
func (*Downloader_Done_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Downloader_Done_Call) RunAndReturn(run func() <-chan struct{}) *Downloader_Done_Call
type Downloader_Expecter ¶ added in v0.46.0
type Downloader_Expecter struct {
// contains filtered or unexported fields
}
func (*Downloader_Expecter) Done ¶ added in v0.46.0
func (_e *Downloader_Expecter) Done() *Downloader_Done_Call
Done is a helper method to define mock.On call
func (*Downloader_Expecter) Get ¶ added in v0.46.0
func (_e *Downloader_Expecter) Get(ctx interface{}, rootID interface{}) *Downloader_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- rootID flow.Identifier
func (*Downloader_Expecter) HighestCompleteHeight ¶ added in v0.46.0
func (_e *Downloader_Expecter) HighestCompleteHeight() *Downloader_HighestCompleteHeight_Call
HighestCompleteHeight is a helper method to define mock.On call
func (*Downloader_Expecter) OnBlockProcessed ¶ added in v0.46.0
func (_e *Downloader_Expecter) OnBlockProcessed(v interface{}) *Downloader_OnBlockProcessed_Call
OnBlockProcessed is a helper method to define mock.On call
- v uint64
func (*Downloader_Expecter) Ready ¶ added in v0.46.0
func (_e *Downloader_Expecter) Ready() *Downloader_Ready_Call
Ready is a helper method to define mock.On call
func (*Downloader_Expecter) SetHeightUpdatesConsumer ¶ added in v0.46.0
func (_e *Downloader_Expecter) SetHeightUpdatesConsumer(heightUpdatesConsumer interface{}) *Downloader_SetHeightUpdatesConsumer_Call
SetHeightUpdatesConsumer is a helper method to define mock.On call
- heightUpdatesConsumer execution_data.HeightUpdatesConsumer
type Downloader_Get_Call ¶ added in v0.46.0
Downloader_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*Downloader_Get_Call) Return ¶ added in v0.46.0
func (_c *Downloader_Get_Call) Return(blockExecutionData *execution_data.BlockExecutionData, err error) *Downloader_Get_Call
func (*Downloader_Get_Call) Run ¶ added in v0.46.0
func (_c *Downloader_Get_Call) Run(run func(ctx context.Context, rootID flow.Identifier)) *Downloader_Get_Call
func (*Downloader_Get_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Downloader_Get_Call) RunAndReturn(run func(ctx context.Context, rootID flow.Identifier) (*execution_data.BlockExecutionData, error)) *Downloader_Get_Call
type Downloader_HighestCompleteHeight_Call ¶ added in v0.46.0
Downloader_HighestCompleteHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HighestCompleteHeight'
func (*Downloader_HighestCompleteHeight_Call) Return ¶ added in v0.46.0
func (_c *Downloader_HighestCompleteHeight_Call) Return(v uint64) *Downloader_HighestCompleteHeight_Call
func (*Downloader_HighestCompleteHeight_Call) Run ¶ added in v0.46.0
func (_c *Downloader_HighestCompleteHeight_Call) Run(run func()) *Downloader_HighestCompleteHeight_Call
func (*Downloader_HighestCompleteHeight_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Downloader_HighestCompleteHeight_Call) RunAndReturn(run func() uint64) *Downloader_HighestCompleteHeight_Call
type Downloader_OnBlockProcessed_Call ¶ added in v0.46.0
Downloader_OnBlockProcessed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnBlockProcessed'
func (*Downloader_OnBlockProcessed_Call) Return ¶ added in v0.46.0
func (_c *Downloader_OnBlockProcessed_Call) Return() *Downloader_OnBlockProcessed_Call
func (*Downloader_OnBlockProcessed_Call) Run ¶ added in v0.46.0
func (_c *Downloader_OnBlockProcessed_Call) Run(run func(v uint64)) *Downloader_OnBlockProcessed_Call
func (*Downloader_OnBlockProcessed_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Downloader_OnBlockProcessed_Call) RunAndReturn(run func(v uint64)) *Downloader_OnBlockProcessed_Call
type Downloader_Ready_Call ¶ added in v0.46.0
Downloader_Ready_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ready'
func (*Downloader_Ready_Call) Return ¶ added in v0.46.0
func (_c *Downloader_Ready_Call) Return(valCh <-chan struct{}) *Downloader_Ready_Call
func (*Downloader_Ready_Call) Run ¶ added in v0.46.0
func (_c *Downloader_Ready_Call) Run(run func()) *Downloader_Ready_Call
func (*Downloader_Ready_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Downloader_Ready_Call) RunAndReturn(run func() <-chan struct{}) *Downloader_Ready_Call
type Downloader_SetHeightUpdatesConsumer_Call ¶ added in v0.46.0
Downloader_SetHeightUpdatesConsumer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHeightUpdatesConsumer'
func (*Downloader_SetHeightUpdatesConsumer_Call) Return ¶ added in v0.46.0
func (_c *Downloader_SetHeightUpdatesConsumer_Call) Return() *Downloader_SetHeightUpdatesConsumer_Call
func (*Downloader_SetHeightUpdatesConsumer_Call) Run ¶ added in v0.46.0
func (_c *Downloader_SetHeightUpdatesConsumer_Call) Run(run func(heightUpdatesConsumer execution_data.HeightUpdatesConsumer)) *Downloader_SetHeightUpdatesConsumer_Call
func (*Downloader_SetHeightUpdatesConsumer_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Downloader_SetHeightUpdatesConsumer_Call) RunAndReturn(run func(heightUpdatesConsumer execution_data.HeightUpdatesConsumer)) *Downloader_SetHeightUpdatesConsumer_Call
type ExecutionDataCache ¶ added in v0.44.0
ExecutionDataCache is an autogenerated mock type for the ExecutionDataCache type
func NewExecutionDataCache ¶ added in v0.44.0
func NewExecutionDataCache(t interface {
mock.TestingT
Cleanup(func())
}) *ExecutionDataCache
NewExecutionDataCache creates a new instance of ExecutionDataCache. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ExecutionDataCache) ByBlockID ¶ added in v0.44.0
func (_mock *ExecutionDataCache) ByBlockID(ctx context.Context, blockID flow.Identifier) (*execution_data.BlockExecutionDataEntity, error)
ByBlockID provides a mock function for the type ExecutionDataCache
func (*ExecutionDataCache) ByHeight ¶ added in v0.44.0
func (_mock *ExecutionDataCache) ByHeight(ctx context.Context, height uint64) (*execution_data.BlockExecutionDataEntity, error)
ByHeight provides a mock function for the type ExecutionDataCache
func (*ExecutionDataCache) ByID ¶ added in v0.44.0
func (_mock *ExecutionDataCache) ByID(ctx context.Context, executionDataID flow.Identifier) (*execution_data.BlockExecutionDataEntity, error)
ByID provides a mock function for the type ExecutionDataCache
func (*ExecutionDataCache) EXPECT ¶ added in v0.46.0
func (_m *ExecutionDataCache) EXPECT() *ExecutionDataCache_Expecter
func (*ExecutionDataCache) LookupID ¶ added in v0.44.0
func (_mock *ExecutionDataCache) LookupID(blockID flow.Identifier) (flow.Identifier, error)
LookupID provides a mock function for the type ExecutionDataCache
type ExecutionDataCache_ByBlockID_Call ¶ added in v0.46.0
ExecutionDataCache_ByBlockID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ByBlockID'
func (*ExecutionDataCache_ByBlockID_Call) Return ¶ added in v0.46.0
func (_c *ExecutionDataCache_ByBlockID_Call) Return(blockExecutionDataEntity *execution_data.BlockExecutionDataEntity, err error) *ExecutionDataCache_ByBlockID_Call
func (*ExecutionDataCache_ByBlockID_Call) Run ¶ added in v0.46.0
func (_c *ExecutionDataCache_ByBlockID_Call) Run(run func(ctx context.Context, blockID flow.Identifier)) *ExecutionDataCache_ByBlockID_Call
func (*ExecutionDataCache_ByBlockID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ExecutionDataCache_ByBlockID_Call) RunAndReturn(run func(ctx context.Context, blockID flow.Identifier) (*execution_data.BlockExecutionDataEntity, error)) *ExecutionDataCache_ByBlockID_Call
type ExecutionDataCache_ByHeight_Call ¶ added in v0.46.0
ExecutionDataCache_ByHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ByHeight'
func (*ExecutionDataCache_ByHeight_Call) Return ¶ added in v0.46.0
func (_c *ExecutionDataCache_ByHeight_Call) Return(blockExecutionDataEntity *execution_data.BlockExecutionDataEntity, err error) *ExecutionDataCache_ByHeight_Call
func (*ExecutionDataCache_ByHeight_Call) Run ¶ added in v0.46.0
func (_c *ExecutionDataCache_ByHeight_Call) Run(run func(ctx context.Context, height uint64)) *ExecutionDataCache_ByHeight_Call
func (*ExecutionDataCache_ByHeight_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ExecutionDataCache_ByHeight_Call) RunAndReturn(run func(ctx context.Context, height uint64) (*execution_data.BlockExecutionDataEntity, error)) *ExecutionDataCache_ByHeight_Call
type ExecutionDataCache_ByID_Call ¶ added in v0.46.0
ExecutionDataCache_ByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ByID'
func (*ExecutionDataCache_ByID_Call) Return ¶ added in v0.46.0
func (_c *ExecutionDataCache_ByID_Call) Return(blockExecutionDataEntity *execution_data.BlockExecutionDataEntity, err error) *ExecutionDataCache_ByID_Call
func (*ExecutionDataCache_ByID_Call) Run ¶ added in v0.46.0
func (_c *ExecutionDataCache_ByID_Call) Run(run func(ctx context.Context, executionDataID flow.Identifier)) *ExecutionDataCache_ByID_Call
func (*ExecutionDataCache_ByID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ExecutionDataCache_ByID_Call) RunAndReturn(run func(ctx context.Context, executionDataID flow.Identifier) (*execution_data.BlockExecutionDataEntity, error)) *ExecutionDataCache_ByID_Call
type ExecutionDataCache_Expecter ¶ added in v0.46.0
type ExecutionDataCache_Expecter struct {
// contains filtered or unexported fields
}
func (*ExecutionDataCache_Expecter) ByBlockID ¶ added in v0.46.0
func (_e *ExecutionDataCache_Expecter) ByBlockID(ctx interface{}, blockID interface{}) *ExecutionDataCache_ByBlockID_Call
ByBlockID is a helper method to define mock.On call
- ctx context.Context
- blockID flow.Identifier
func (*ExecutionDataCache_Expecter) ByHeight ¶ added in v0.46.0
func (_e *ExecutionDataCache_Expecter) ByHeight(ctx interface{}, height interface{}) *ExecutionDataCache_ByHeight_Call
ByHeight is a helper method to define mock.On call
- ctx context.Context
- height uint64
func (*ExecutionDataCache_Expecter) ByID ¶ added in v0.46.0
func (_e *ExecutionDataCache_Expecter) ByID(ctx interface{}, executionDataID interface{}) *ExecutionDataCache_ByID_Call
ByID is a helper method to define mock.On call
- ctx context.Context
- executionDataID flow.Identifier
func (*ExecutionDataCache_Expecter) LookupID ¶ added in v0.46.0
func (_e *ExecutionDataCache_Expecter) LookupID(blockID interface{}) *ExecutionDataCache_LookupID_Call
LookupID is a helper method to define mock.On call
- blockID flow.Identifier
type ExecutionDataCache_LookupID_Call ¶ added in v0.46.0
ExecutionDataCache_LookupID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LookupID'
func (*ExecutionDataCache_LookupID_Call) Return ¶ added in v0.46.0
func (_c *ExecutionDataCache_LookupID_Call) Return(identifier flow.Identifier, err error) *ExecutionDataCache_LookupID_Call
func (*ExecutionDataCache_LookupID_Call) Run ¶ added in v0.46.0
func (_c *ExecutionDataCache_LookupID_Call) Run(run func(blockID flow.Identifier)) *ExecutionDataCache_LookupID_Call
func (*ExecutionDataCache_LookupID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ExecutionDataCache_LookupID_Call) RunAndReturn(run func(blockID flow.Identifier) (flow.Identifier, error)) *ExecutionDataCache_LookupID_Call
type ExecutionDataGetter ¶ added in v0.43.2
ExecutionDataGetter is an autogenerated mock type for the ExecutionDataGetter type
func NewExecutionDataGetter ¶ added in v0.43.2
func NewExecutionDataGetter(t interface {
mock.TestingT
Cleanup(func())
}) *ExecutionDataGetter
NewExecutionDataGetter creates a new instance of ExecutionDataGetter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ExecutionDataGetter) EXPECT ¶ added in v0.46.0
func (_m *ExecutionDataGetter) EXPECT() *ExecutionDataGetter_Expecter
func (*ExecutionDataGetter) Get ¶ added in v0.43.2
func (_mock *ExecutionDataGetter) Get(ctx context.Context, rootID flow.Identifier) (*execution_data.BlockExecutionData, error)
Get provides a mock function for the type ExecutionDataGetter
type ExecutionDataGetter_Expecter ¶ added in v0.46.0
type ExecutionDataGetter_Expecter struct {
// contains filtered or unexported fields
}
func (*ExecutionDataGetter_Expecter) Get ¶ added in v0.46.0
func (_e *ExecutionDataGetter_Expecter) Get(ctx interface{}, rootID interface{}) *ExecutionDataGetter_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- rootID flow.Identifier
type ExecutionDataGetter_Get_Call ¶ added in v0.46.0
ExecutionDataGetter_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*ExecutionDataGetter_Get_Call) Return ¶ added in v0.46.0
func (_c *ExecutionDataGetter_Get_Call) Return(blockExecutionData *execution_data.BlockExecutionData, err error) *ExecutionDataGetter_Get_Call
func (*ExecutionDataGetter_Get_Call) Run ¶ added in v0.46.0
func (_c *ExecutionDataGetter_Get_Call) Run(run func(ctx context.Context, rootID flow.Identifier)) *ExecutionDataGetter_Get_Call
func (*ExecutionDataGetter_Get_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ExecutionDataGetter_Get_Call) RunAndReturn(run func(ctx context.Context, rootID flow.Identifier) (*execution_data.BlockExecutionData, error)) *ExecutionDataGetter_Get_Call
type ExecutionDataStore ¶
ExecutionDataStore is an autogenerated mock type for the ExecutionDataStore type
func NewExecutionDataStore ¶
func NewExecutionDataStore(t interface {
mock.TestingT
Cleanup(func())
}) *ExecutionDataStore
NewExecutionDataStore creates a new instance of ExecutionDataStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ExecutionDataStore) Add ¶ added in v0.31.0
func (_mock *ExecutionDataStore) Add(ctx context.Context, executionData *execution_data.BlockExecutionData) (flow.Identifier, error)
Add provides a mock function for the type ExecutionDataStore
func (*ExecutionDataStore) EXPECT ¶ added in v0.46.0
func (_m *ExecutionDataStore) EXPECT() *ExecutionDataStore_Expecter
func (*ExecutionDataStore) Get ¶ added in v0.31.0
func (_mock *ExecutionDataStore) Get(ctx context.Context, rootID flow.Identifier) (*execution_data.BlockExecutionData, error)
Get provides a mock function for the type ExecutionDataStore
type ExecutionDataStore_Add_Call ¶ added in v0.46.0
ExecutionDataStore_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'
func (*ExecutionDataStore_Add_Call) Return ¶ added in v0.46.0
func (_c *ExecutionDataStore_Add_Call) Return(identifier flow.Identifier, err error) *ExecutionDataStore_Add_Call
func (*ExecutionDataStore_Add_Call) Run ¶ added in v0.46.0
func (_c *ExecutionDataStore_Add_Call) Run(run func(ctx context.Context, executionData *execution_data.BlockExecutionData)) *ExecutionDataStore_Add_Call
func (*ExecutionDataStore_Add_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ExecutionDataStore_Add_Call) RunAndReturn(run func(ctx context.Context, executionData *execution_data.BlockExecutionData) (flow.Identifier, error)) *ExecutionDataStore_Add_Call
type ExecutionDataStore_Expecter ¶ added in v0.46.0
type ExecutionDataStore_Expecter struct {
// contains filtered or unexported fields
}
func (*ExecutionDataStore_Expecter) Add ¶ added in v0.46.0
func (_e *ExecutionDataStore_Expecter) Add(ctx interface{}, executionData interface{}) *ExecutionDataStore_Add_Call
Add is a helper method to define mock.On call
- ctx context.Context
- executionData *execution_data.BlockExecutionData
func (*ExecutionDataStore_Expecter) Get ¶ added in v0.46.0
func (_e *ExecutionDataStore_Expecter) Get(ctx interface{}, rootID interface{}) *ExecutionDataStore_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- rootID flow.Identifier
type ExecutionDataStore_Get_Call ¶ added in v0.46.0
ExecutionDataStore_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*ExecutionDataStore_Get_Call) Return ¶ added in v0.46.0
func (_c *ExecutionDataStore_Get_Call) Return(blockExecutionData *execution_data.BlockExecutionData, err error) *ExecutionDataStore_Get_Call
func (*ExecutionDataStore_Get_Call) Run ¶ added in v0.46.0
func (_c *ExecutionDataStore_Get_Call) Run(run func(ctx context.Context, rootID flow.Identifier)) *ExecutionDataStore_Get_Call
func (*ExecutionDataStore_Get_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ExecutionDataStore_Get_Call) RunAndReturn(run func(ctx context.Context, rootID flow.Identifier) (*execution_data.BlockExecutionData, error)) *ExecutionDataStore_Get_Call
type ProcessedHeightRecorder ¶ added in v0.43.2
ProcessedHeightRecorder is an autogenerated mock type for the ProcessedHeightRecorder type
func NewProcessedHeightRecorder ¶ added in v0.43.2
func NewProcessedHeightRecorder(t interface {
mock.TestingT
Cleanup(func())
}) *ProcessedHeightRecorder
NewProcessedHeightRecorder creates a new instance of ProcessedHeightRecorder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ProcessedHeightRecorder) EXPECT ¶ added in v0.46.0
func (_m *ProcessedHeightRecorder) EXPECT() *ProcessedHeightRecorder_Expecter
func (*ProcessedHeightRecorder) HighestCompleteHeight ¶ added in v0.43.2
func (_mock *ProcessedHeightRecorder) HighestCompleteHeight() uint64
HighestCompleteHeight provides a mock function for the type ProcessedHeightRecorder
func (*ProcessedHeightRecorder) OnBlockProcessed ¶ added in v0.43.2
func (_mock *ProcessedHeightRecorder) OnBlockProcessed(v uint64)
OnBlockProcessed provides a mock function for the type ProcessedHeightRecorder
func (*ProcessedHeightRecorder) SetHeightUpdatesConsumer ¶ added in v0.43.2
func (_mock *ProcessedHeightRecorder) SetHeightUpdatesConsumer(heightUpdatesConsumer execution_data.HeightUpdatesConsumer)
SetHeightUpdatesConsumer provides a mock function for the type ProcessedHeightRecorder
type ProcessedHeightRecorder_Expecter ¶ added in v0.46.0
type ProcessedHeightRecorder_Expecter struct {
// contains filtered or unexported fields
}
func (*ProcessedHeightRecorder_Expecter) HighestCompleteHeight ¶ added in v0.46.0
func (_e *ProcessedHeightRecorder_Expecter) HighestCompleteHeight() *ProcessedHeightRecorder_HighestCompleteHeight_Call
HighestCompleteHeight is a helper method to define mock.On call
func (*ProcessedHeightRecorder_Expecter) OnBlockProcessed ¶ added in v0.46.0
func (_e *ProcessedHeightRecorder_Expecter) OnBlockProcessed(v interface{}) *ProcessedHeightRecorder_OnBlockProcessed_Call
OnBlockProcessed is a helper method to define mock.On call
- v uint64
func (*ProcessedHeightRecorder_Expecter) SetHeightUpdatesConsumer ¶ added in v0.46.0
func (_e *ProcessedHeightRecorder_Expecter) SetHeightUpdatesConsumer(heightUpdatesConsumer interface{}) *ProcessedHeightRecorder_SetHeightUpdatesConsumer_Call
SetHeightUpdatesConsumer is a helper method to define mock.On call
- heightUpdatesConsumer execution_data.HeightUpdatesConsumer
type ProcessedHeightRecorder_HighestCompleteHeight_Call ¶ added in v0.46.0
ProcessedHeightRecorder_HighestCompleteHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HighestCompleteHeight'
func (*ProcessedHeightRecorder_HighestCompleteHeight_Call) Run ¶ added in v0.46.0
func (_c *ProcessedHeightRecorder_HighestCompleteHeight_Call) Run(run func()) *ProcessedHeightRecorder_HighestCompleteHeight_Call
func (*ProcessedHeightRecorder_HighestCompleteHeight_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ProcessedHeightRecorder_HighestCompleteHeight_Call) RunAndReturn(run func() uint64) *ProcessedHeightRecorder_HighestCompleteHeight_Call
type ProcessedHeightRecorder_OnBlockProcessed_Call ¶ added in v0.46.0
ProcessedHeightRecorder_OnBlockProcessed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnBlockProcessed'
func (*ProcessedHeightRecorder_OnBlockProcessed_Call) Run ¶ added in v0.46.0
func (_c *ProcessedHeightRecorder_OnBlockProcessed_Call) Run(run func(v uint64)) *ProcessedHeightRecorder_OnBlockProcessed_Call
func (*ProcessedHeightRecorder_OnBlockProcessed_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ProcessedHeightRecorder_OnBlockProcessed_Call) RunAndReturn(run func(v uint64)) *ProcessedHeightRecorder_OnBlockProcessed_Call
type ProcessedHeightRecorder_SetHeightUpdatesConsumer_Call ¶ added in v0.46.0
ProcessedHeightRecorder_SetHeightUpdatesConsumer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHeightUpdatesConsumer'
func (*ProcessedHeightRecorder_SetHeightUpdatesConsumer_Call) Run ¶ added in v0.46.0
func (_c *ProcessedHeightRecorder_SetHeightUpdatesConsumer_Call) Run(run func(heightUpdatesConsumer execution_data.HeightUpdatesConsumer)) *ProcessedHeightRecorder_SetHeightUpdatesConsumer_Call
func (*ProcessedHeightRecorder_SetHeightUpdatesConsumer_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ProcessedHeightRecorder_SetHeightUpdatesConsumer_Call) RunAndReturn(run func(heightUpdatesConsumer execution_data.HeightUpdatesConsumer)) *ProcessedHeightRecorder_SetHeightUpdatesConsumer_Call
type Serializer ¶ added in v0.43.2
Serializer is an autogenerated mock type for the Serializer type
func NewSerializer ¶ added in v0.43.2
func NewSerializer(t interface {
mock.TestingT
Cleanup(func())
}) *Serializer
NewSerializer creates a new instance of Serializer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Serializer) Deserialize ¶ added in v0.43.2
func (_mock *Serializer) Deserialize(reader io.Reader) (interface{}, error)
Deserialize provides a mock function for the type Serializer
func (*Serializer) EXPECT ¶ added in v0.46.0
func (_m *Serializer) EXPECT() *Serializer_Expecter
type Serializer_Deserialize_Call ¶ added in v0.46.0
Serializer_Deserialize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Deserialize'
func (*Serializer_Deserialize_Call) Return ¶ added in v0.46.0
func (_c *Serializer_Deserialize_Call) Return(ifaceVal interface{}, err error) *Serializer_Deserialize_Call
func (*Serializer_Deserialize_Call) Run ¶ added in v0.46.0
func (_c *Serializer_Deserialize_Call) Run(run func(reader io.Reader)) *Serializer_Deserialize_Call
func (*Serializer_Deserialize_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Serializer_Deserialize_Call) RunAndReturn(run func(reader io.Reader) (interface{}, error)) *Serializer_Deserialize_Call
type Serializer_Expecter ¶ added in v0.46.0
type Serializer_Expecter struct {
// contains filtered or unexported fields
}
func (*Serializer_Expecter) Deserialize ¶ added in v0.46.0
func (_e *Serializer_Expecter) Deserialize(reader interface{}) *Serializer_Deserialize_Call
Deserialize is a helper method to define mock.On call
- reader io.Reader
func (*Serializer_Expecter) Serialize ¶ added in v0.46.0
func (_e *Serializer_Expecter) Serialize(writer interface{}, ifaceVal interface{}) *Serializer_Serialize_Call
Serialize is a helper method to define mock.On call
- writer io.Writer
- ifaceVal interface{}
type Serializer_Serialize_Call ¶ added in v0.46.0
Serializer_Serialize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Serialize'
func (*Serializer_Serialize_Call) Return ¶ added in v0.46.0
func (_c *Serializer_Serialize_Call) Return(err error) *Serializer_Serialize_Call
func (*Serializer_Serialize_Call) Run ¶ added in v0.46.0
func (_c *Serializer_Serialize_Call) Run(run func(writer io.Writer, ifaceVal interface{})) *Serializer_Serialize_Call
func (*Serializer_Serialize_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Serializer_Serialize_Call) RunAndReturn(run func(writer io.Writer, ifaceVal interface{}) error) *Serializer_Serialize_Call