mock

package
v0.38.0-preview.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 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 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 given 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 given 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