mock

package
v0.29.6 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

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

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

type OnViewCallback struct {
	mock.Mock
}

OnViewCallback is an autogenerated mock type for the OnViewCallback type

func NewOnViewCallback

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

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

Execute provides a mock function with given fields: _a0

type Views

type Views struct {
	mock.Mock
}

Views is an autogenerated mock type for the Views type

func NewViews

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

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