match

package
v1.16.2 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoNode

type GoNode struct {
	mock.Mock
}

GoNode is an autogenerated mock type for the GoNode type

func NewGoNode

func NewGoNode(t interface {
	mock.TestingT
	Cleanup(func())
}) *GoNode

NewGoNode creates a new instance of GoNode. 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 (*GoNode) EXPECT

func (_m *GoNode) EXPECT() *GoNode_Expecter

func (*GoNode) MatchCursor

func (_m *GoNode) MatchCursor(cursor *dstutil.Cursor) bool

MatchCursor provides a mock function with given fields: cursor

func (*GoNode) MatchNode

func (_m *GoNode) MatchNode(node dst.Node) bool

MatchNode provides a mock function with given fields: node

type GoNode_Expecter

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

func (*GoNode_Expecter) MatchCursor

func (_e *GoNode_Expecter) MatchCursor(cursor interface{}) *GoNode_MatchCursor_Call

MatchCursor is a helper method to define mock.On call

  • cursor *dstutil.Cursor

func (*GoNode_Expecter) MatchNode

func (_e *GoNode_Expecter) MatchNode(node interface{}) *GoNode_MatchNode_Call

MatchNode is a helper method to define mock.On call

  • node dst.Node

type GoNode_MatchCursor_Call

type GoNode_MatchCursor_Call struct {
	*mock.Call
}

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

func (*GoNode_MatchCursor_Call) Return

func (*GoNode_MatchCursor_Call) Run

func (_c *GoNode_MatchCursor_Call) Run(run func(cursor *dstutil.Cursor)) *GoNode_MatchCursor_Call

func (*GoNode_MatchCursor_Call) RunAndReturn

func (_c *GoNode_MatchCursor_Call) RunAndReturn(run func(*dstutil.Cursor) bool) *GoNode_MatchCursor_Call

type GoNode_MatchNode_Call

type GoNode_MatchNode_Call struct {
	*mock.Call
}

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

func (*GoNode_MatchNode_Call) Return

func (*GoNode_MatchNode_Call) Run

func (_c *GoNode_MatchNode_Call) Run(run func(node dst.Node)) *GoNode_MatchNode_Call

func (*GoNode_MatchNode_Call) RunAndReturn

func (_c *GoNode_MatchNode_Call) RunAndReturn(run func(dst.Node) bool) *GoNode_MatchNode_Call

Jump to

Keyboard shortcuts

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