mock

package
v0.46.0-ledger-service.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Downloader

type Downloader struct {
	mock.Mock
}

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

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

type Downloader_Done_Call struct {
	*mock.Call
}

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

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

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

type Downloader_Get_Call struct {
	*mock.Call
}

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

type Downloader_HighestCompleteHeight_Call added in v0.46.0

type Downloader_HighestCompleteHeight_Call struct {
	*mock.Call
}

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 (*Downloader_HighestCompleteHeight_Call) Run added in v0.46.0

func (*Downloader_HighestCompleteHeight_Call) RunAndReturn added in v0.46.0

type Downloader_OnBlockProcessed_Call added in v0.46.0

type Downloader_OnBlockProcessed_Call struct {
	*mock.Call
}

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 (*Downloader_OnBlockProcessed_Call) Run added in v0.46.0

func (*Downloader_OnBlockProcessed_Call) RunAndReturn added in v0.46.0

type Downloader_Ready_Call added in v0.46.0

type Downloader_Ready_Call struct {
	*mock.Call
}

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

type Downloader_SetHeightUpdatesConsumer_Call struct {
	*mock.Call
}

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 (*Downloader_SetHeightUpdatesConsumer_Call) Run added in v0.46.0

func (*Downloader_SetHeightUpdatesConsumer_Call) RunAndReturn added in v0.46.0

type ExecutionDataCache added in v0.44.0

type ExecutionDataCache struct {
	mock.Mock
}

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

ByBlockID provides a mock function for the type ExecutionDataCache

func (*ExecutionDataCache) ByHeight added in v0.44.0

ByHeight provides a mock function for the type ExecutionDataCache

func (*ExecutionDataCache) ByID added in v0.44.0

ByID provides a mock function for the type ExecutionDataCache

func (*ExecutionDataCache) EXPECT added in v0.46.0

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

type ExecutionDataCache_ByBlockID_Call struct {
	*mock.Call
}

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 (*ExecutionDataCache_ByBlockID_Call) Run added in v0.46.0

func (*ExecutionDataCache_ByBlockID_Call) RunAndReturn added in v0.46.0

type ExecutionDataCache_ByHeight_Call added in v0.46.0

type ExecutionDataCache_ByHeight_Call struct {
	*mock.Call
}

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 (*ExecutionDataCache_ByHeight_Call) Run added in v0.46.0

func (*ExecutionDataCache_ByHeight_Call) RunAndReturn added in v0.46.0

type ExecutionDataCache_ByID_Call added in v0.46.0

type ExecutionDataCache_ByID_Call struct {
	*mock.Call
}

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 (*ExecutionDataCache_ByID_Call) Run added in v0.46.0

func (*ExecutionDataCache_ByID_Call) RunAndReturn added in v0.46.0

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

type ExecutionDataCache_LookupID_Call struct {
	*mock.Call
}

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 (*ExecutionDataCache_LookupID_Call) Run added in v0.46.0

func (*ExecutionDataCache_LookupID_Call) RunAndReturn added in v0.46.0

type ExecutionDataGetter added in v0.43.2

type ExecutionDataGetter struct {
	mock.Mock
}

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 (*ExecutionDataGetter) Get added in v0.43.2

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

type ExecutionDataGetter_Get_Call struct {
	*mock.Call
}

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 (*ExecutionDataGetter_Get_Call) Run added in v0.46.0

func (*ExecutionDataGetter_Get_Call) RunAndReturn added in v0.46.0

type ExecutionDataStore

type ExecutionDataStore struct {
	mock.Mock
}

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

Add provides a mock function for the type ExecutionDataStore

func (*ExecutionDataStore) EXPECT added in v0.46.0

func (*ExecutionDataStore) Get added in v0.31.0

Get provides a mock function for the type ExecutionDataStore

type ExecutionDataStore_Add_Call added in v0.46.0

type ExecutionDataStore_Add_Call struct {
	*mock.Call
}

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 (*ExecutionDataStore_Add_Call) Run added in v0.46.0

func (*ExecutionDataStore_Add_Call) RunAndReturn added in v0.46.0

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

type ExecutionDataStore_Get_Call struct {
	*mock.Call
}

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 (*ExecutionDataStore_Get_Call) Run added in v0.46.0

func (*ExecutionDataStore_Get_Call) RunAndReturn added in v0.46.0

type ProcessedHeightRecorder added in v0.43.2

type ProcessedHeightRecorder struct {
	mock.Mock
}

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 (*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

HighestCompleteHeight is a helper method to define mock.On call

func (*ProcessedHeightRecorder_Expecter) OnBlockProcessed added in v0.46.0

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

type ProcessedHeightRecorder_HighestCompleteHeight_Call struct {
	*mock.Call
}

ProcessedHeightRecorder_HighestCompleteHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HighestCompleteHeight'

func (*ProcessedHeightRecorder_HighestCompleteHeight_Call) Return added in v0.46.0

func (*ProcessedHeightRecorder_HighestCompleteHeight_Call) Run added in v0.46.0

func (*ProcessedHeightRecorder_HighestCompleteHeight_Call) RunAndReturn added in v0.46.0

type ProcessedHeightRecorder_OnBlockProcessed_Call added in v0.46.0

type ProcessedHeightRecorder_OnBlockProcessed_Call struct {
	*mock.Call
}

ProcessedHeightRecorder_OnBlockProcessed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnBlockProcessed'

func (*ProcessedHeightRecorder_OnBlockProcessed_Call) Return added in v0.46.0

func (*ProcessedHeightRecorder_OnBlockProcessed_Call) Run added in v0.46.0

func (*ProcessedHeightRecorder_OnBlockProcessed_Call) RunAndReturn added in v0.46.0

type ProcessedHeightRecorder_SetHeightUpdatesConsumer_Call added in v0.46.0

type ProcessedHeightRecorder_SetHeightUpdatesConsumer_Call struct {
	*mock.Call
}

ProcessedHeightRecorder_SetHeightUpdatesConsumer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHeightUpdatesConsumer'

func (*ProcessedHeightRecorder_SetHeightUpdatesConsumer_Call) Return added in v0.46.0

func (*ProcessedHeightRecorder_SetHeightUpdatesConsumer_Call) Run added in v0.46.0

func (*ProcessedHeightRecorder_SetHeightUpdatesConsumer_Call) RunAndReturn added in v0.46.0

type Serializer added in v0.43.2

type Serializer struct {
	mock.Mock
}

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

func (*Serializer) Serialize added in v0.43.2

func (_mock *Serializer) Serialize(writer io.Writer, ifaceVal interface{}) error

Serialize provides a mock function for the type Serializer

type Serializer_Deserialize_Call added in v0.46.0

type Serializer_Deserialize_Call struct {
	*mock.Call
}

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 (*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

type Serializer_Serialize_Call struct {
	*mock.Call
}

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 (*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

Jump to

Keyboard shortcuts

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