mocks

package
v1.1.22 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Spawn

type Spawn struct {
	mock.Mock
}

Spawn is an autogenerated mock type for the Spawn type

func NewSpawn

func NewSpawn(t interface {
	mock.TestingT
	Cleanup(func())
}) *Spawn

NewSpawn creates a new instance of Spawn. 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 (*Spawn) CurrentProcessIsSpawn

func (_m *Spawn) CurrentProcessIsSpawn() bool

CurrentProcessIsSpawn provides a mock function with given fields:

func (*Spawn) EXPECT

func (_m *Spawn) EXPECT() *Spawn_Expecter

func (*Spawn) Spawn

func (_m *Spawn) Spawn(args ...string) error

Spawn provides a mock function with given fields: args

type Spawn_CurrentProcessIsSpawn_Call

type Spawn_CurrentProcessIsSpawn_Call struct {
	*mock.Call
}

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

func (*Spawn_CurrentProcessIsSpawn_Call) Return

func (*Spawn_CurrentProcessIsSpawn_Call) Run

func (*Spawn_CurrentProcessIsSpawn_Call) RunAndReturn added in v1.0.73

type Spawn_Expecter

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

func (*Spawn_Expecter) CurrentProcessIsSpawn

func (_e *Spawn_Expecter) CurrentProcessIsSpawn() *Spawn_CurrentProcessIsSpawn_Call

CurrentProcessIsSpawn is a helper method to define mock.On call

func (*Spawn_Expecter) Spawn

func (_e *Spawn_Expecter) Spawn(args ...interface{}) *Spawn_Spawn_Call

Spawn is a helper method to define mock.On call

  • args ...string

type Spawn_Spawn_Call

type Spawn_Spawn_Call struct {
	*mock.Call
}

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

func (*Spawn_Spawn_Call) Return

func (_c *Spawn_Spawn_Call) Return(_a0 error) *Spawn_Spawn_Call

func (*Spawn_Spawn_Call) Run

func (_c *Spawn_Spawn_Call) Run(run func(args ...string)) *Spawn_Spawn_Call

func (*Spawn_Spawn_Call) RunAndReturn added in v1.0.73

func (_c *Spawn_Spawn_Call) RunAndReturn(run func(...string) error) *Spawn_Spawn_Call

Jump to

Keyboard shortcuts

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