mock

package
v0.44.5 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2025 License: AGPL-3.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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) GetStartHeightFromBlockID added in v0.43.2

func (_m *BaseTracker) GetStartHeightFromBlockID(_a0 flow.Identifier) (uint64, error)

GetStartHeightFromBlockID provides a mock function with given fields: _a0

func (*BaseTracker) GetStartHeightFromHeight added in v0.43.2

func (_m *BaseTracker) GetStartHeightFromHeight(_a0 uint64) (uint64, error)

GetStartHeightFromHeight provides a mock function with given fields: _a0

func (*BaseTracker) GetStartHeightFromLatest added in v0.43.2

func (_m *BaseTracker) GetStartHeightFromLatest(_a0 context.Context) (uint64, error)

GetStartHeightFromLatest provides a mock function with given fields: _a0

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

func (_m *BlockTracker) GetHighestHeight(_a0 flow.BlockStatus) (uint64, error)

GetHighestHeight provides a mock function with given fields: _a0

func (*BlockTracker) GetStartHeightFromBlockID

func (_m *BlockTracker) GetStartHeightFromBlockID(_a0 flow.Identifier) (uint64, error)

GetStartHeightFromBlockID provides a mock function with given fields: _a0

func (*BlockTracker) GetStartHeightFromHeight

func (_m *BlockTracker) GetStartHeightFromHeight(_a0 uint64) (uint64, error)

GetStartHeightFromHeight provides a mock function with given fields: _a0

func (*BlockTracker) GetStartHeightFromLatest

func (_m *BlockTracker) GetStartHeightFromLatest(_a0 context.Context) (uint64, error)

GetStartHeightFromLatest provides a mock function with given fields: _a0

func (*BlockTracker) ProcessOnFinalizedBlock

func (_m *BlockTracker) ProcessOnFinalizedBlock() error

ProcessOnFinalizedBlock provides a mock function with no fields

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

func (_m *ExecutionDataTracker) GetHighestHeight() uint64

GetHighestHeight provides a mock function with no fields

func (*ExecutionDataTracker) GetStartHeight

func (_m *ExecutionDataTracker) GetStartHeight(_a0 context.Context, _a1 flow.Identifier, _a2 uint64) (uint64, error)

GetStartHeight provides a mock function with given fields: _a0, _a1, _a2

func (*ExecutionDataTracker) GetStartHeightFromBlockID

func (_m *ExecutionDataTracker) GetStartHeightFromBlockID(_a0 flow.Identifier) (uint64, error)

GetStartHeightFromBlockID provides a mock function with given fields: _a0

func (*ExecutionDataTracker) GetStartHeightFromHeight

func (_m *ExecutionDataTracker) GetStartHeightFromHeight(_a0 uint64) (uint64, error)

GetStartHeightFromHeight provides a mock function with given fields: _a0

func (*ExecutionDataTracker) GetStartHeightFromLatest

func (_m *ExecutionDataTracker) GetStartHeightFromLatest(_a0 context.Context) (uint64, error)

GetStartHeightFromLatest provides a mock function with given fields: _a0

func (*ExecutionDataTracker) OnExecutionData

OnExecutionData provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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