Help us shape the future of Go! Take the 2026 Go Developer Survey

mock

package
v0.45.2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: AGPL-3.0 Imports: 2 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 added in v0.26.1

func NewHeights(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*Heights) OnHeight

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

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

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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

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