mock

package
v0.46.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 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) EXPECT added in v0.46.0

func (_m *Heights) EXPECT() *Heights_Expecter

func (*Heights) OnHeight

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

OnHeight provides a mock function for the type Heights

type Heights_Expecter added in v0.46.0

type Heights_Expecter struct {
	// contains filtered or unexported fields
}

func (*Heights_Expecter) OnHeight added in v0.46.0

func (_e *Heights_Expecter) OnHeight(height interface{}, callback interface{}) *Heights_OnHeight_Call

OnHeight is a helper method to define mock.On call

  • height uint64
  • callback func()

type Heights_OnHeight_Call added in v0.46.0

type Heights_OnHeight_Call struct {
	*mock.Call
}

Heights_OnHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnHeight'

func (*Heights_OnHeight_Call) Return added in v0.46.0

func (*Heights_OnHeight_Call) Run added in v0.46.0

func (_c *Heights_OnHeight_Call) Run(run func(height uint64, callback func())) *Heights_OnHeight_Call

func (*Heights_OnHeight_Call) RunAndReturn added in v0.46.0

func (_c *Heights_OnHeight_Call) RunAndReturn(run func(height uint64, callback func())) *Heights_OnHeight_Call

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) EXPECT added in v0.46.0

func (_m *Views) EXPECT() *Views_Expecter

func (*Views) OnView added in v0.20.0

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

OnView provides a mock function for the type Views

type Views_Expecter added in v0.46.0

type Views_Expecter struct {
	// contains filtered or unexported fields
}

func (*Views_Expecter) OnView added in v0.46.0

func (_e *Views_Expecter) OnView(view interface{}, callback interface{}) *Views_OnView_Call

OnView is a helper method to define mock.On call

  • view uint64
  • callback events.OnViewCallback

type Views_OnView_Call added in v0.46.0

type Views_OnView_Call struct {
	*mock.Call
}

Views_OnView_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnView'

func (*Views_OnView_Call) Return added in v0.46.0

func (_c *Views_OnView_Call) Return() *Views_OnView_Call

func (*Views_OnView_Call) Run added in v0.46.0

func (_c *Views_OnView_Call) Run(run func(view uint64, callback events.OnViewCallback)) *Views_OnView_Call

func (*Views_OnView_Call) RunAndReturn added in v0.46.0

func (_c *Views_OnView_Call) RunAndReturn(run func(view uint64, callback events.OnViewCallback)) *Views_OnView_Call

Jump to

Keyboard shortcuts

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