mocksystem

package
v1.0.0-alpha.32 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCmd

type MockCmd struct {
	mock.Mock
}

MockCmd is an autogenerated mock type for the Cmd type

func NewMockCmd

func NewMockCmd(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockCmd

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

func (_m *MockCmd) EXPECT() *MockCmd_Expecter

func (*MockCmd) SetDir

func (_mock *MockCmd) SetDir(dir string)

SetDir provides a mock function for the type MockCmd

func (*MockCmd) SetEnv

func (_mock *MockCmd) SetEnv(env []string)

SetEnv provides a mock function for the type MockCmd

func (*MockCmd) SetStderr

func (_mock *MockCmd) SetStderr(w io.Writer)

SetStderr provides a mock function for the type MockCmd

func (*MockCmd) SetStdout

func (_mock *MockCmd) SetStdout(w io.Writer)

SetStdout provides a mock function for the type MockCmd

func (*MockCmd) Signal

func (_mock *MockCmd) Signal(sig os.Signal) error

Signal provides a mock function for the type MockCmd

func (*MockCmd) Start

func (_mock *MockCmd) Start() error

Start provides a mock function for the type MockCmd

func (*MockCmd) Wait

func (_mock *MockCmd) Wait() error

Wait provides a mock function for the type MockCmd

type MockCmd_Expecter

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

func (*MockCmd_Expecter) SetDir

func (_e *MockCmd_Expecter) SetDir(dir interface{}) *MockCmd_SetDir_Call

SetDir is a helper method to define mock.On call

  • dir string

func (*MockCmd_Expecter) SetEnv

func (_e *MockCmd_Expecter) SetEnv(env interface{}) *MockCmd_SetEnv_Call

SetEnv is a helper method to define mock.On call

  • env []string

func (*MockCmd_Expecter) SetStderr

func (_e *MockCmd_Expecter) SetStderr(w interface{}) *MockCmd_SetStderr_Call

SetStderr is a helper method to define mock.On call

  • w io.Writer

func (*MockCmd_Expecter) SetStdout

func (_e *MockCmd_Expecter) SetStdout(w interface{}) *MockCmd_SetStdout_Call

SetStdout is a helper method to define mock.On call

  • w io.Writer

func (*MockCmd_Expecter) Signal

func (_e *MockCmd_Expecter) Signal(sig interface{}) *MockCmd_Signal_Call

Signal is a helper method to define mock.On call

  • sig os.Signal

func (*MockCmd_Expecter) Start

func (_e *MockCmd_Expecter) Start() *MockCmd_Start_Call

Start is a helper method to define mock.On call

func (*MockCmd_Expecter) Wait

func (_e *MockCmd_Expecter) Wait() *MockCmd_Wait_Call

Wait is a helper method to define mock.On call

type MockCmd_SetDir_Call

type MockCmd_SetDir_Call struct {
	*mock.Call
}

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

func (*MockCmd_SetDir_Call) Return

func (*MockCmd_SetDir_Call) Run

func (_c *MockCmd_SetDir_Call) Run(run func(dir string)) *MockCmd_SetDir_Call

func (*MockCmd_SetDir_Call) RunAndReturn

func (_c *MockCmd_SetDir_Call) RunAndReturn(run func(dir string)) *MockCmd_SetDir_Call

type MockCmd_SetEnv_Call

type MockCmd_SetEnv_Call struct {
	*mock.Call
}

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

func (*MockCmd_SetEnv_Call) Return

func (*MockCmd_SetEnv_Call) Run

func (_c *MockCmd_SetEnv_Call) Run(run func(env []string)) *MockCmd_SetEnv_Call

func (*MockCmd_SetEnv_Call) RunAndReturn

func (_c *MockCmd_SetEnv_Call) RunAndReturn(run func(env []string)) *MockCmd_SetEnv_Call

type MockCmd_SetStderr_Call

type MockCmd_SetStderr_Call struct {
	*mock.Call
}

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

func (*MockCmd_SetStderr_Call) Return

func (*MockCmd_SetStderr_Call) Run

func (*MockCmd_SetStderr_Call) RunAndReturn

func (_c *MockCmd_SetStderr_Call) RunAndReturn(run func(w io.Writer)) *MockCmd_SetStderr_Call

type MockCmd_SetStdout_Call

type MockCmd_SetStdout_Call struct {
	*mock.Call
}

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

func (*MockCmd_SetStdout_Call) Return

func (*MockCmd_SetStdout_Call) Run

func (*MockCmd_SetStdout_Call) RunAndReturn

func (_c *MockCmd_SetStdout_Call) RunAndReturn(run func(w io.Writer)) *MockCmd_SetStdout_Call

type MockCmd_Signal_Call

type MockCmd_Signal_Call struct {
	*mock.Call
}

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

func (*MockCmd_Signal_Call) Return

func (*MockCmd_Signal_Call) Run

func (_c *MockCmd_Signal_Call) Run(run func(sig os.Signal)) *MockCmd_Signal_Call

func (*MockCmd_Signal_Call) RunAndReturn

func (_c *MockCmd_Signal_Call) RunAndReturn(run func(sig os.Signal) error) *MockCmd_Signal_Call

type MockCmd_Start_Call

type MockCmd_Start_Call struct {
	*mock.Call
}

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

func (*MockCmd_Start_Call) Return

func (_c *MockCmd_Start_Call) Return(err error) *MockCmd_Start_Call

func (*MockCmd_Start_Call) Run

func (_c *MockCmd_Start_Call) Run(run func()) *MockCmd_Start_Call

func (*MockCmd_Start_Call) RunAndReturn

func (_c *MockCmd_Start_Call) RunAndReturn(run func() error) *MockCmd_Start_Call

type MockCmd_Wait_Call

type MockCmd_Wait_Call struct {
	*mock.Call
}

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

func (*MockCmd_Wait_Call) Return

func (_c *MockCmd_Wait_Call) Return(err error) *MockCmd_Wait_Call

func (*MockCmd_Wait_Call) Run

func (_c *MockCmd_Wait_Call) Run(run func()) *MockCmd_Wait_Call

func (*MockCmd_Wait_Call) RunAndReturn

func (_c *MockCmd_Wait_Call) RunAndReturn(run func() error) *MockCmd_Wait_Call

type MockDialer

type MockDialer struct {
	mock.Mock
}

MockDialer is an autogenerated mock type for the Dialer type

func NewMockDialer

func NewMockDialer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockDialer

NewMockDialer creates a new instance of MockDialer. 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 (*MockDialer) Dial

func (_mock *MockDialer) Dial(ctx context.Context, addr string) (*grpc.ClientConn, error)

Dial provides a mock function for the type MockDialer

func (*MockDialer) EXPECT

func (_m *MockDialer) EXPECT() *MockDialer_Expecter

type MockDialer_Dial_Call

type MockDialer_Dial_Call struct {
	*mock.Call
}

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

func (*MockDialer_Dial_Call) Return

func (_c *MockDialer_Dial_Call) Return(clientConn *grpc.ClientConn, err error) *MockDialer_Dial_Call

func (*MockDialer_Dial_Call) Run

func (_c *MockDialer_Dial_Call) Run(run func(ctx context.Context, addr string)) *MockDialer_Dial_Call

func (*MockDialer_Dial_Call) RunAndReturn

func (_c *MockDialer_Dial_Call) RunAndReturn(run func(ctx context.Context, addr string) (*grpc.ClientConn, error)) *MockDialer_Dial_Call

type MockDialer_Expecter

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

func (*MockDialer_Expecter) Dial

func (_e *MockDialer_Expecter) Dial(ctx interface{}, addr interface{}) *MockDialer_Dial_Call

Dial is a helper method to define mock.On call

  • ctx context.Context
  • addr string

type MockLoopbackAllocator

type MockLoopbackAllocator struct {
	mock.Mock
}

MockLoopbackAllocator is an autogenerated mock type for the LoopbackAllocator type

func NewMockLoopbackAllocator

func NewMockLoopbackAllocator(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockLoopbackAllocator

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

func (*MockLoopbackAllocator) Reserve

func (_mock *MockLoopbackAllocator) Reserve() (string, error)

Reserve provides a mock function for the type MockLoopbackAllocator

type MockLoopbackAllocator_Expecter

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

func (*MockLoopbackAllocator_Expecter) Reserve

Reserve is a helper method to define mock.On call

type MockLoopbackAllocator_Reserve_Call

type MockLoopbackAllocator_Reserve_Call struct {
	*mock.Call
}

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

func (*MockLoopbackAllocator_Reserve_Call) Return

func (*MockLoopbackAllocator_Reserve_Call) Run

func (*MockLoopbackAllocator_Reserve_Call) RunAndReturn

type MockSpawner

type MockSpawner struct {
	mock.Mock
}

MockSpawner is an autogenerated mock type for the Spawner type

func NewMockSpawner

func NewMockSpawner(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSpawner

NewMockSpawner creates a new instance of MockSpawner. 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 (*MockSpawner) Command

func (_mock *MockSpawner) Command(name string, args ...string) system.Cmd

Command provides a mock function for the type MockSpawner

func (*MockSpawner) EXPECT

func (_m *MockSpawner) EXPECT() *MockSpawner_Expecter

type MockSpawner_Command_Call

type MockSpawner_Command_Call struct {
	*mock.Call
}

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

func (*MockSpawner_Command_Call) Return

func (*MockSpawner_Command_Call) Run

func (_c *MockSpawner_Command_Call) Run(run func(name string, args ...string)) *MockSpawner_Command_Call

func (*MockSpawner_Command_Call) RunAndReturn

func (_c *MockSpawner_Command_Call) RunAndReturn(run func(name string, args ...string) system.Cmd) *MockSpawner_Command_Call

type MockSpawner_Expecter

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

func (*MockSpawner_Expecter) Command

func (_e *MockSpawner_Expecter) Command(name interface{}, args ...interface{}) *MockSpawner_Command_Call

Command is a helper method to define mock.On call

  • name string
  • args ...string

Jump to

Keyboard shortcuts

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