mock

package
v0.33.25-util-update-c... Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: AGPL-3.0 Imports: 3 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 Heights

type Heights struct {
	mock.Mock
}

Heights is an autogenerated mock type for the Heights type

func NewHeights added in v0.26.1

func NewHeights(t mockConstructorTestingTNewHeights) *Heights

NewHeights creates a new instance of Heights. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Heights) OnHeight

func (_m *Heights) OnHeight(height uint64, callback func())

OnHeight provides a mock function with given fields: height, callback

type OnViewCallback added in v0.26.1

type OnViewCallback struct {
	mock.Mock
}

OnViewCallback is an autogenerated mock type for the OnViewCallback type

func NewOnViewCallback added in v0.26.1

func NewOnViewCallback(t mockConstructorTestingTNewOnViewCallback) *OnViewCallback

NewOnViewCallback creates a new instance of OnViewCallback. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*OnViewCallback) Execute added in v0.26.1

func (_m *OnViewCallback) Execute(_a0 *flow.Header)

Execute provides a mock function with given fields: _a0

type Views added in v0.20.0

type Views struct {
	mock.Mock
}

Views is an autogenerated mock type for the Views type

func NewViews added in v0.26.1

func NewViews(t mockConstructorTestingTNewViews) *Views

NewViews creates a new instance of Views. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Views) OnView added in v0.20.0

func (_m *Views) OnView(view uint64, callback events.OnViewCallback)

OnView provides a mock function with given fields: view, callback

Jump to

Keyboard shortcuts

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