mock

package
v0.43.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2025 License: AGPL-3.0 Imports: 2 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 Blocks

type Blocks struct {
	mock.Mock
}

Blocks is an autogenerated mock type for the Blocks type

func NewBlocks

func NewBlocks(t interface {
	mock.TestingT
	Cleanup(func())
}) *Blocks

NewBlocks creates a new instance of Blocks. 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 (*Blocks) FinalizedHeader

func (_m *Blocks) FinalizedHeader() (*flow.Header, error)

FinalizedHeader provides a mock function with no fields

func (*Blocks) HeaderByID

func (_m *Blocks) HeaderByID(id flow.Identifier) (*flow.Header, error)

HeaderByID provides a mock function with given fields: id

func (*Blocks) IndexedHeight

func (_m *Blocks) IndexedHeight() (uint64, error)

IndexedHeight provides a mock function with no fields

func (*Blocks) SealedHeader

func (_m *Blocks) SealedHeader() (*flow.Header, error)

SealedHeader provides a mock function with no fields

Jump to

Keyboard shortcuts

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