mock

package
v0.46.0 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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseTracker added in v0.43.2

type BaseTracker struct {
	mock.Mock
}

BaseTracker is an autogenerated mock type for the BaseTracker type

func NewBaseTracker added in v0.43.2

func NewBaseTracker(t interface {
	mock.TestingT
	Cleanup(func())
}) *BaseTracker

NewBaseTracker creates a new instance of BaseTracker. 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 (*BaseTracker) EXPECT added in v0.46.0

func (_m *BaseTracker) EXPECT() *BaseTracker_Expecter

func (*BaseTracker) GetStartHeightFromBlockID added in v0.43.2

func (_mock *BaseTracker) GetStartHeightFromBlockID(identifier flow.Identifier) (uint64, error)

GetStartHeightFromBlockID provides a mock function for the type BaseTracker

func (*BaseTracker) GetStartHeightFromHeight added in v0.43.2

func (_mock *BaseTracker) GetStartHeightFromHeight(v uint64) (uint64, error)

GetStartHeightFromHeight provides a mock function for the type BaseTracker

func (*BaseTracker) GetStartHeightFromLatest added in v0.43.2

func (_mock *BaseTracker) GetStartHeightFromLatest(context1 context.Context) (uint64, error)

GetStartHeightFromLatest provides a mock function for the type BaseTracker

type BaseTracker_Expecter added in v0.46.0

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

func (*BaseTracker_Expecter) GetStartHeightFromBlockID added in v0.46.0

func (_e *BaseTracker_Expecter) GetStartHeightFromBlockID(identifier interface{}) *BaseTracker_GetStartHeightFromBlockID_Call

GetStartHeightFromBlockID is a helper method to define mock.On call

  • identifier flow.Identifier

func (*BaseTracker_Expecter) GetStartHeightFromHeight added in v0.46.0

func (_e *BaseTracker_Expecter) GetStartHeightFromHeight(v interface{}) *BaseTracker_GetStartHeightFromHeight_Call

GetStartHeightFromHeight is a helper method to define mock.On call

  • v uint64

func (*BaseTracker_Expecter) GetStartHeightFromLatest added in v0.46.0

func (_e *BaseTracker_Expecter) GetStartHeightFromLatest(context1 interface{}) *BaseTracker_GetStartHeightFromLatest_Call

GetStartHeightFromLatest is a helper method to define mock.On call

  • context1 context.Context

type BaseTracker_GetStartHeightFromBlockID_Call added in v0.46.0

type BaseTracker_GetStartHeightFromBlockID_Call struct {
	*mock.Call
}

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

func (*BaseTracker_GetStartHeightFromBlockID_Call) Return added in v0.46.0

func (*BaseTracker_GetStartHeightFromBlockID_Call) Run added in v0.46.0

func (*BaseTracker_GetStartHeightFromBlockID_Call) RunAndReturn added in v0.46.0

type BaseTracker_GetStartHeightFromHeight_Call added in v0.46.0

type BaseTracker_GetStartHeightFromHeight_Call struct {
	*mock.Call
}

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

func (*BaseTracker_GetStartHeightFromHeight_Call) Return added in v0.46.0

func (*BaseTracker_GetStartHeightFromHeight_Call) Run added in v0.46.0

func (*BaseTracker_GetStartHeightFromHeight_Call) RunAndReturn added in v0.46.0

type BaseTracker_GetStartHeightFromLatest_Call added in v0.46.0

type BaseTracker_GetStartHeightFromLatest_Call struct {
	*mock.Call
}

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

func (*BaseTracker_GetStartHeightFromLatest_Call) Return added in v0.46.0

func (*BaseTracker_GetStartHeightFromLatest_Call) Run added in v0.46.0

func (*BaseTracker_GetStartHeightFromLatest_Call) RunAndReturn added in v0.46.0

type BlockTracker

type BlockTracker struct {
	mock.Mock
}

BlockTracker is an autogenerated mock type for the BlockTracker type

func NewBlockTracker

func NewBlockTracker(t interface {
	mock.TestingT
	Cleanup(func())
}) *BlockTracker

NewBlockTracker creates a new instance of BlockTracker. 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 (*BlockTracker) EXPECT added in v0.46.0

func (_m *BlockTracker) EXPECT() *BlockTracker_Expecter

func (*BlockTracker) GetHighestHeight

func (_mock *BlockTracker) GetHighestHeight(blockStatus flow.BlockStatus) (uint64, error)

GetHighestHeight provides a mock function for the type BlockTracker

func (*BlockTracker) GetStartHeightFromBlockID

func (_mock *BlockTracker) GetStartHeightFromBlockID(identifier flow.Identifier) (uint64, error)

GetStartHeightFromBlockID provides a mock function for the type BlockTracker

func (*BlockTracker) GetStartHeightFromHeight

func (_mock *BlockTracker) GetStartHeightFromHeight(v uint64) (uint64, error)

GetStartHeightFromHeight provides a mock function for the type BlockTracker

func (*BlockTracker) GetStartHeightFromLatest

func (_mock *BlockTracker) GetStartHeightFromLatest(context1 context.Context) (uint64, error)

GetStartHeightFromLatest provides a mock function for the type BlockTracker

func (*BlockTracker) ProcessOnFinalizedBlock

func (_mock *BlockTracker) ProcessOnFinalizedBlock() error

ProcessOnFinalizedBlock provides a mock function for the type BlockTracker

type BlockTracker_Expecter added in v0.46.0

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

func (*BlockTracker_Expecter) GetHighestHeight added in v0.46.0

func (_e *BlockTracker_Expecter) GetHighestHeight(blockStatus interface{}) *BlockTracker_GetHighestHeight_Call

GetHighestHeight is a helper method to define mock.On call

  • blockStatus flow.BlockStatus

func (*BlockTracker_Expecter) GetStartHeightFromBlockID added in v0.46.0

func (_e *BlockTracker_Expecter) GetStartHeightFromBlockID(identifier interface{}) *BlockTracker_GetStartHeightFromBlockID_Call

GetStartHeightFromBlockID is a helper method to define mock.On call

  • identifier flow.Identifier

func (*BlockTracker_Expecter) GetStartHeightFromHeight added in v0.46.0

func (_e *BlockTracker_Expecter) GetStartHeightFromHeight(v interface{}) *BlockTracker_GetStartHeightFromHeight_Call

GetStartHeightFromHeight is a helper method to define mock.On call

  • v uint64

func (*BlockTracker_Expecter) GetStartHeightFromLatest added in v0.46.0

func (_e *BlockTracker_Expecter) GetStartHeightFromLatest(context1 interface{}) *BlockTracker_GetStartHeightFromLatest_Call

GetStartHeightFromLatest is a helper method to define mock.On call

  • context1 context.Context

func (*BlockTracker_Expecter) ProcessOnFinalizedBlock added in v0.46.0

ProcessOnFinalizedBlock is a helper method to define mock.On call

type BlockTracker_GetHighestHeight_Call added in v0.46.0

type BlockTracker_GetHighestHeight_Call struct {
	*mock.Call
}

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

func (*BlockTracker_GetHighestHeight_Call) Return added in v0.46.0

func (*BlockTracker_GetHighestHeight_Call) Run added in v0.46.0

func (*BlockTracker_GetHighestHeight_Call) RunAndReturn added in v0.46.0

type BlockTracker_GetStartHeightFromBlockID_Call added in v0.46.0

type BlockTracker_GetStartHeightFromBlockID_Call struct {
	*mock.Call
}

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

func (*BlockTracker_GetStartHeightFromBlockID_Call) Return added in v0.46.0

func (*BlockTracker_GetStartHeightFromBlockID_Call) Run added in v0.46.0

func (*BlockTracker_GetStartHeightFromBlockID_Call) RunAndReturn added in v0.46.0

type BlockTracker_GetStartHeightFromHeight_Call added in v0.46.0

type BlockTracker_GetStartHeightFromHeight_Call struct {
	*mock.Call
}

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

func (*BlockTracker_GetStartHeightFromHeight_Call) Return added in v0.46.0

func (*BlockTracker_GetStartHeightFromHeight_Call) Run added in v0.46.0

func (*BlockTracker_GetStartHeightFromHeight_Call) RunAndReturn added in v0.46.0

type BlockTracker_GetStartHeightFromLatest_Call added in v0.46.0

type BlockTracker_GetStartHeightFromLatest_Call struct {
	*mock.Call
}

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

func (*BlockTracker_GetStartHeightFromLatest_Call) Return added in v0.46.0

func (*BlockTracker_GetStartHeightFromLatest_Call) Run added in v0.46.0

func (*BlockTracker_GetStartHeightFromLatest_Call) RunAndReturn added in v0.46.0

type BlockTracker_ProcessOnFinalizedBlock_Call added in v0.46.0

type BlockTracker_ProcessOnFinalizedBlock_Call struct {
	*mock.Call
}

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

func (*BlockTracker_ProcessOnFinalizedBlock_Call) Return added in v0.46.0

func (*BlockTracker_ProcessOnFinalizedBlock_Call) Run added in v0.46.0

func (*BlockTracker_ProcessOnFinalizedBlock_Call) RunAndReturn added in v0.46.0

type ExecutionDataTracker

type ExecutionDataTracker struct {
	mock.Mock
}

ExecutionDataTracker is an autogenerated mock type for the ExecutionDataTracker type

func NewExecutionDataTracker

func NewExecutionDataTracker(t interface {
	mock.TestingT
	Cleanup(func())
}) *ExecutionDataTracker

NewExecutionDataTracker creates a new instance of ExecutionDataTracker. 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 (*ExecutionDataTracker) EXPECT added in v0.46.0

func (*ExecutionDataTracker) GetHighestHeight

func (_mock *ExecutionDataTracker) GetHighestHeight() uint64

GetHighestHeight provides a mock function for the type ExecutionDataTracker

func (*ExecutionDataTracker) GetStartHeight

func (_mock *ExecutionDataTracker) GetStartHeight(context1 context.Context, identifier flow.Identifier, v uint64) (uint64, error)

GetStartHeight provides a mock function for the type ExecutionDataTracker

func (*ExecutionDataTracker) GetStartHeightFromBlockID

func (_mock *ExecutionDataTracker) GetStartHeightFromBlockID(identifier flow.Identifier) (uint64, error)

GetStartHeightFromBlockID provides a mock function for the type ExecutionDataTracker

func (*ExecutionDataTracker) GetStartHeightFromHeight

func (_mock *ExecutionDataTracker) GetStartHeightFromHeight(v uint64) (uint64, error)

GetStartHeightFromHeight provides a mock function for the type ExecutionDataTracker

func (*ExecutionDataTracker) GetStartHeightFromLatest

func (_mock *ExecutionDataTracker) GetStartHeightFromLatest(context1 context.Context) (uint64, error)

GetStartHeightFromLatest provides a mock function for the type ExecutionDataTracker

func (*ExecutionDataTracker) OnExecutionData

func (_mock *ExecutionDataTracker) OnExecutionData(blockExecutionDataEntity *execution_data.BlockExecutionDataEntity)

OnExecutionData provides a mock function for the type ExecutionDataTracker

type ExecutionDataTracker_Expecter added in v0.46.0

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

func (*ExecutionDataTracker_Expecter) GetHighestHeight added in v0.46.0

GetHighestHeight is a helper method to define mock.On call

func (*ExecutionDataTracker_Expecter) GetStartHeight added in v0.46.0

func (_e *ExecutionDataTracker_Expecter) GetStartHeight(context1 interface{}, identifier interface{}, v interface{}) *ExecutionDataTracker_GetStartHeight_Call

GetStartHeight is a helper method to define mock.On call

  • context1 context.Context
  • identifier flow.Identifier
  • v uint64

func (*ExecutionDataTracker_Expecter) GetStartHeightFromBlockID added in v0.46.0

func (_e *ExecutionDataTracker_Expecter) GetStartHeightFromBlockID(identifier interface{}) *ExecutionDataTracker_GetStartHeightFromBlockID_Call

GetStartHeightFromBlockID is a helper method to define mock.On call

  • identifier flow.Identifier

func (*ExecutionDataTracker_Expecter) GetStartHeightFromHeight added in v0.46.0

func (_e *ExecutionDataTracker_Expecter) GetStartHeightFromHeight(v interface{}) *ExecutionDataTracker_GetStartHeightFromHeight_Call

GetStartHeightFromHeight is a helper method to define mock.On call

  • v uint64

func (*ExecutionDataTracker_Expecter) GetStartHeightFromLatest added in v0.46.0

func (_e *ExecutionDataTracker_Expecter) GetStartHeightFromLatest(context1 interface{}) *ExecutionDataTracker_GetStartHeightFromLatest_Call

GetStartHeightFromLatest is a helper method to define mock.On call

  • context1 context.Context

func (*ExecutionDataTracker_Expecter) OnExecutionData added in v0.46.0

func (_e *ExecutionDataTracker_Expecter) OnExecutionData(blockExecutionDataEntity interface{}) *ExecutionDataTracker_OnExecutionData_Call

OnExecutionData is a helper method to define mock.On call

  • blockExecutionDataEntity *execution_data.BlockExecutionDataEntity

type ExecutionDataTracker_GetHighestHeight_Call added in v0.46.0

type ExecutionDataTracker_GetHighestHeight_Call struct {
	*mock.Call
}

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

func (*ExecutionDataTracker_GetHighestHeight_Call) Return added in v0.46.0

func (*ExecutionDataTracker_GetHighestHeight_Call) Run added in v0.46.0

func (*ExecutionDataTracker_GetHighestHeight_Call) RunAndReturn added in v0.46.0

type ExecutionDataTracker_GetStartHeightFromBlockID_Call added in v0.46.0

type ExecutionDataTracker_GetStartHeightFromBlockID_Call struct {
	*mock.Call
}

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

func (*ExecutionDataTracker_GetStartHeightFromBlockID_Call) Return added in v0.46.0

func (*ExecutionDataTracker_GetStartHeightFromBlockID_Call) Run added in v0.46.0

func (*ExecutionDataTracker_GetStartHeightFromBlockID_Call) RunAndReturn added in v0.46.0

type ExecutionDataTracker_GetStartHeightFromHeight_Call added in v0.46.0

type ExecutionDataTracker_GetStartHeightFromHeight_Call struct {
	*mock.Call
}

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

func (*ExecutionDataTracker_GetStartHeightFromHeight_Call) Return added in v0.46.0

func (*ExecutionDataTracker_GetStartHeightFromHeight_Call) Run added in v0.46.0

func (*ExecutionDataTracker_GetStartHeightFromHeight_Call) RunAndReturn added in v0.46.0

type ExecutionDataTracker_GetStartHeightFromLatest_Call added in v0.46.0

type ExecutionDataTracker_GetStartHeightFromLatest_Call struct {
	*mock.Call
}

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

func (*ExecutionDataTracker_GetStartHeightFromLatest_Call) Return added in v0.46.0

func (*ExecutionDataTracker_GetStartHeightFromLatest_Call) Run added in v0.46.0

func (*ExecutionDataTracker_GetStartHeightFromLatest_Call) RunAndReturn added in v0.46.0

type ExecutionDataTracker_GetStartHeight_Call added in v0.46.0

type ExecutionDataTracker_GetStartHeight_Call struct {
	*mock.Call
}

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

func (*ExecutionDataTracker_GetStartHeight_Call) Return added in v0.46.0

func (*ExecutionDataTracker_GetStartHeight_Call) Run added in v0.46.0

func (*ExecutionDataTracker_GetStartHeight_Call) RunAndReturn added in v0.46.0

type ExecutionDataTracker_OnExecutionData_Call added in v0.46.0

type ExecutionDataTracker_OnExecutionData_Call struct {
	*mock.Call
}

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

func (*ExecutionDataTracker_OnExecutionData_Call) Return added in v0.46.0

func (*ExecutionDataTracker_OnExecutionData_Call) Run added in v0.46.0

func (*ExecutionDataTracker_OnExecutionData_Call) RunAndReturn added in v0.46.0

Jump to

Keyboard shortcuts

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