mocks

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeProcess

type NodeProcess struct {
	mock.Mock
}

NodeProcess is an autogenerated mock type for the NodeProcess type

func NewNodeProcess

func NewNodeProcess(t interface {
	mock.TestingT
	Cleanup(func())
}) *NodeProcess

NewNodeProcess creates a new instance of NodeProcess. 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 (*NodeProcess) EXPECT added in v1.9.0

func (_m *NodeProcess) EXPECT() *NodeProcess_Expecter

func (*NodeProcess) Status

func (_mock *NodeProcess) Status() status.Status

Status provides a mock function for the type NodeProcess

func (*NodeProcess) Stop

func (_mock *NodeProcess) Stop(ctx context.Context) int

Stop provides a mock function for the type NodeProcess

type NodeProcess_Expecter added in v1.9.0

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

func (*NodeProcess_Expecter) Status added in v1.9.0

Status is a helper method to define mock.On call

func (*NodeProcess_Expecter) Stop added in v1.9.0

func (_e *NodeProcess_Expecter) Stop(ctx interface{}) *NodeProcess_Stop_Call

Stop is a helper method to define mock.On call

  • ctx context.Context

type NodeProcess_Status_Call added in v1.9.0

type NodeProcess_Status_Call struct {
	*mock.Call
}

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

func (*NodeProcess_Status_Call) Return added in v1.9.0

func (*NodeProcess_Status_Call) Run added in v1.9.0

func (_c *NodeProcess_Status_Call) Run(run func()) *NodeProcess_Status_Call

func (*NodeProcess_Status_Call) RunAndReturn added in v1.9.0

func (_c *NodeProcess_Status_Call) RunAndReturn(run func() status.Status) *NodeProcess_Status_Call

type NodeProcess_Stop_Call added in v1.9.0

type NodeProcess_Stop_Call struct {
	*mock.Call
}

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

func (*NodeProcess_Stop_Call) Return added in v1.9.0

func (*NodeProcess_Stop_Call) Run added in v1.9.0

func (*NodeProcess_Stop_Call) RunAndReturn added in v1.9.0

func (_c *NodeProcess_Stop_Call) RunAndReturn(run func(ctx context.Context) int) *NodeProcess_Stop_Call

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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