mock

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 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 Vertex

type Vertex struct {
	mock.Mock
}

Vertex is an autogenerated mock type for the Vertex type

func NewVertex added in v0.26.1

func NewVertex(t interface {
	mock.TestingT
	Cleanup(func())
}) *Vertex

NewVertex creates a new instance of Vertex. 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 (*Vertex) EXPECT added in v0.46.0

func (_m *Vertex) EXPECT() *Vertex_Expecter

func (*Vertex) Level

func (_mock *Vertex) Level() uint64

Level provides a mock function for the type Vertex

func (*Vertex) Parent

func (_mock *Vertex) Parent() (flow.Identifier, uint64)

Parent provides a mock function for the type Vertex

func (*Vertex) VertexID

func (_mock *Vertex) VertexID() flow.Identifier

VertexID provides a mock function for the type Vertex

type Vertex_Expecter added in v0.46.0

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

func (*Vertex_Expecter) Level added in v0.46.0

func (_e *Vertex_Expecter) Level() *Vertex_Level_Call

Level is a helper method to define mock.On call

func (*Vertex_Expecter) Parent added in v0.46.0

func (_e *Vertex_Expecter) Parent() *Vertex_Parent_Call

Parent is a helper method to define mock.On call

func (*Vertex_Expecter) VertexID added in v0.46.0

func (_e *Vertex_Expecter) VertexID() *Vertex_VertexID_Call

VertexID is a helper method to define mock.On call

type Vertex_Level_Call added in v0.46.0

type Vertex_Level_Call struct {
	*mock.Call
}

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

func (*Vertex_Level_Call) Return added in v0.46.0

func (*Vertex_Level_Call) Run added in v0.46.0

func (_c *Vertex_Level_Call) Run(run func()) *Vertex_Level_Call

func (*Vertex_Level_Call) RunAndReturn added in v0.46.0

func (_c *Vertex_Level_Call) RunAndReturn(run func() uint64) *Vertex_Level_Call

type Vertex_Parent_Call added in v0.46.0

type Vertex_Parent_Call struct {
	*mock.Call
}

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

func (*Vertex_Parent_Call) Return added in v0.46.0

func (_c *Vertex_Parent_Call) Return(identifier flow.Identifier, v uint64) *Vertex_Parent_Call

func (*Vertex_Parent_Call) Run added in v0.46.0

func (_c *Vertex_Parent_Call) Run(run func()) *Vertex_Parent_Call

func (*Vertex_Parent_Call) RunAndReturn added in v0.46.0

func (_c *Vertex_Parent_Call) RunAndReturn(run func() (flow.Identifier, uint64)) *Vertex_Parent_Call

type Vertex_VertexID_Call added in v0.46.0

type Vertex_VertexID_Call struct {
	*mock.Call
}

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

func (*Vertex_VertexID_Call) Return added in v0.46.0

func (_c *Vertex_VertexID_Call) Return(identifier flow.Identifier) *Vertex_VertexID_Call

func (*Vertex_VertexID_Call) Run added in v0.46.0

func (_c *Vertex_VertexID_Call) Run(run func()) *Vertex_VertexID_Call

func (*Vertex_VertexID_Call) RunAndReturn added in v0.46.0

func (_c *Vertex_VertexID_Call) RunAndReturn(run func() flow.Identifier) *Vertex_VertexID_Call

Jump to

Keyboard shortcuts

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