process

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 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 OnOutputFunc

type OnOutputFunc struct {
	mock.Mock
}

OnOutputFunc is an autogenerated mock type for the OnOutputFunc type

func NewOnOutputFunc

func NewOnOutputFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *OnOutputFunc

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

func (_m *OnOutputFunc) EXPECT() *OnOutputFunc_Expecter

func (*OnOutputFunc) Execute

func (_m *OnOutputFunc) Execute(typ process.OutputType, line []byte)

Execute provides a mock function with given fields: typ, line

type OnOutputFunc_Execute_Call

type OnOutputFunc_Execute_Call struct {
	*mock.Call
}

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

func (*OnOutputFunc_Execute_Call) Return

func (*OnOutputFunc_Execute_Call) Run

func (*OnOutputFunc_Execute_Call) RunAndReturn

type OnOutputFunc_Expecter

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

func (*OnOutputFunc_Expecter) Execute

func (_e *OnOutputFunc_Expecter) Execute(typ interface{}, line interface{}) *OnOutputFunc_Execute_Call

Execute is a helper method to define mock.On call

  • typ process.OutputType
  • line []byte

type OnPipeOutputFunc added in v1.17.0

type OnPipeOutputFunc struct {
	mock.Mock
}

OnPipeOutputFunc is an autogenerated mock type for the OnPipeOutputFunc type

func NewOnPipeOutputFunc added in v1.17.0

func NewOnPipeOutputFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *OnPipeOutputFunc

NewOnPipeOutputFunc creates a new instance of OnPipeOutputFunc. 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 (*OnPipeOutputFunc) EXPECT added in v1.17.0

func (*OnPipeOutputFunc) Execute added in v1.17.0

func (_m *OnPipeOutputFunc) Execute(typ process.OutputType, line []byte, key string)

Execute provides a mock function with given fields: typ, line, key

type OnPipeOutputFunc_Execute_Call added in v1.17.0

type OnPipeOutputFunc_Execute_Call struct {
	*mock.Call
}

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

func (*OnPipeOutputFunc_Execute_Call) Return added in v1.17.0

func (*OnPipeOutputFunc_Execute_Call) Run added in v1.17.0

func (*OnPipeOutputFunc_Execute_Call) RunAndReturn added in v1.17.0

type OnPipeOutputFunc_Expecter added in v1.17.0

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

func (*OnPipeOutputFunc_Expecter) Execute added in v1.17.0

func (_e *OnPipeOutputFunc_Expecter) Execute(typ interface{}, line interface{}, key interface{}) *OnPipeOutputFunc_Execute_Call

Execute is a helper method to define mock.On call

  • typ process.OutputType
  • line []byte
  • key string

type OnPoolOutputFunc added in v1.17.0

type OnPoolOutputFunc struct {
	mock.Mock
}

OnPoolOutputFunc is an autogenerated mock type for the OnPoolOutputFunc type

func NewOnPoolOutputFunc added in v1.17.0

func NewOnPoolOutputFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *OnPoolOutputFunc

NewOnPoolOutputFunc creates a new instance of OnPoolOutputFunc. 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 (*OnPoolOutputFunc) EXPECT added in v1.17.0

func (*OnPoolOutputFunc) Execute added in v1.17.0

func (_m *OnPoolOutputFunc) Execute(typ process.OutputType, line []byte, key string)

Execute provides a mock function with given fields: typ, line, key

type OnPoolOutputFunc_Execute_Call added in v1.17.0

type OnPoolOutputFunc_Execute_Call struct {
	*mock.Call
}

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

func (*OnPoolOutputFunc_Execute_Call) Return added in v1.17.0

func (*OnPoolOutputFunc_Execute_Call) Run added in v1.17.0

func (*OnPoolOutputFunc_Execute_Call) RunAndReturn added in v1.17.0

type OnPoolOutputFunc_Expecter added in v1.17.0

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

func (*OnPoolOutputFunc_Expecter) Execute added in v1.17.0

func (_e *OnPoolOutputFunc_Expecter) Execute(typ interface{}, line interface{}, key interface{}) *OnPoolOutputFunc_Execute_Call

Execute is a helper method to define mock.On call

  • typ process.OutputType
  • line []byte
  • key string

type Pipe added in v1.17.0

type Pipe struct {
	mock.Mock
}

Pipe is an autogenerated mock type for the Pipe type

func NewPipe added in v1.17.0

func NewPipe(t interface {
	mock.TestingT
	Cleanup(func())
}) *Pipe

NewPipe creates a new instance of Pipe. 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 (*Pipe) Command added in v1.17.0

func (_m *Pipe) Command(name string, arg ...string) process.PipeCommand

Command provides a mock function with given fields: name, arg

func (*Pipe) EXPECT added in v1.17.0

func (_m *Pipe) EXPECT() *Pipe_Expecter

type PipeBuilder added in v1.17.0

type PipeBuilder struct {
	mock.Mock
}

PipeBuilder is an autogenerated mock type for the PipeBuilder type

func NewPipeBuilder added in v1.17.0

func NewPipeBuilder(t interface {
	mock.TestingT
	Cleanup(func())
}) *PipeBuilder

NewPipeBuilder creates a new instance of PipeBuilder. 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 (*PipeBuilder) Command added in v1.17.0

func (_m *PipeBuilder) Command(name string, arg ...string) *process.PipeCommand

Command provides a mock function with given fields: name, arg

func (*PipeBuilder) EXPECT added in v1.17.0

func (_m *PipeBuilder) EXPECT() *PipeBuilder_Expecter

type PipeBuilder_Command_Call added in v1.17.0

type PipeBuilder_Command_Call struct {
	*mock.Call
}

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

func (*PipeBuilder_Command_Call) Return added in v1.17.0

func (*PipeBuilder_Command_Call) Run added in v1.17.0

func (_c *PipeBuilder_Command_Call) Run(run func(name string, arg ...string)) *PipeBuilder_Command_Call

func (*PipeBuilder_Command_Call) RunAndReturn added in v1.17.0

type PipeBuilder_Expecter added in v1.17.0

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

func (*PipeBuilder_Expecter) Command added in v1.17.0

func (_e *PipeBuilder_Expecter) Command(name interface{}, arg ...interface{}) *PipeBuilder_Command_Call

Command is a helper method to define mock.On call

  • name string
  • arg ...string

type PipeCommand added in v1.17.0

type PipeCommand struct {
	mock.Mock
}

PipeCommand is an autogenerated mock type for the PipeCommand type

func NewPipeCommand added in v1.17.0

func NewPipeCommand(t interface {
	mock.TestingT
	Cleanup(func())
}) *PipeCommand

NewPipeCommand creates a new instance of PipeCommand. 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 (*PipeCommand) As added in v1.17.0

func (_m *PipeCommand) As(key string) process.PipeCommand

As provides a mock function with given fields: key

func (*PipeCommand) EXPECT added in v1.17.0

func (_m *PipeCommand) EXPECT() *PipeCommand_Expecter

func (*PipeCommand) WithSpinner added in v1.17.0

func (_m *PipeCommand) WithSpinner(message ...string) process.PipeCommand

WithSpinner provides a mock function with given fields: message

type PipeCommand_As_Call added in v1.17.0

type PipeCommand_As_Call struct {
	*mock.Call
}

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

func (*PipeCommand_As_Call) Return added in v1.17.0

func (*PipeCommand_As_Call) Run added in v1.17.0

func (_c *PipeCommand_As_Call) Run(run func(key string)) *PipeCommand_As_Call

func (*PipeCommand_As_Call) RunAndReturn added in v1.17.0

func (_c *PipeCommand_As_Call) RunAndReturn(run func(string) process.PipeCommand) *PipeCommand_As_Call

type PipeCommand_Expecter added in v1.17.0

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

func (*PipeCommand_Expecter) As added in v1.17.0

func (_e *PipeCommand_Expecter) As(key interface{}) *PipeCommand_As_Call

As is a helper method to define mock.On call

  • key string

func (*PipeCommand_Expecter) WithSpinner added in v1.17.0

func (_e *PipeCommand_Expecter) WithSpinner(message ...interface{}) *PipeCommand_WithSpinner_Call

WithSpinner is a helper method to define mock.On call

  • message ...string

type PipeCommand_WithSpinner_Call added in v1.17.0

type PipeCommand_WithSpinner_Call struct {
	*mock.Call
}

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

func (*PipeCommand_WithSpinner_Call) Return added in v1.17.0

func (*PipeCommand_WithSpinner_Call) Run added in v1.17.0

func (_c *PipeCommand_WithSpinner_Call) Run(run func(message ...string)) *PipeCommand_WithSpinner_Call

func (*PipeCommand_WithSpinner_Call) RunAndReturn added in v1.17.0

type Pipe_Command_Call added in v1.17.0

type Pipe_Command_Call struct {
	*mock.Call
}

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

func (*Pipe_Command_Call) Return added in v1.17.0

func (*Pipe_Command_Call) Run added in v1.17.0

func (_c *Pipe_Command_Call) Run(run func(name string, arg ...string)) *Pipe_Command_Call

func (*Pipe_Command_Call) RunAndReturn added in v1.17.0

func (_c *Pipe_Command_Call) RunAndReturn(run func(string, ...string) process.PipeCommand) *Pipe_Command_Call

type Pipe_Expecter added in v1.17.0

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

func (*Pipe_Expecter) Command added in v1.17.0

func (_e *Pipe_Expecter) Command(name interface{}, arg ...interface{}) *Pipe_Command_Call

Command is a helper method to define mock.On call

  • name string
  • arg ...string

type Pipeline added in v1.17.0

type Pipeline struct {
	mock.Mock
}

Pipeline is an autogenerated mock type for the Pipeline type

func NewPipeline added in v1.17.0

func NewPipeline(t interface {
	mock.TestingT
	Cleanup(func())
}) *Pipeline

NewPipeline creates a new instance of Pipeline. 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 (*Pipeline) DisableBuffering added in v1.17.0

func (_m *Pipeline) DisableBuffering() process.Pipeline

DisableBuffering provides a mock function with no fields

func (*Pipeline) EXPECT added in v1.17.0

func (_m *Pipeline) EXPECT() *Pipeline_Expecter

func (*Pipeline) Env added in v1.17.0

func (_m *Pipeline) Env(vars map[string]string) process.Pipeline

Env provides a mock function with given fields: vars

func (*Pipeline) Input added in v1.17.0

func (_m *Pipeline) Input(in io.Reader) process.Pipeline

Input provides a mock function with given fields: in

func (*Pipeline) OnOutput added in v1.17.0

func (_m *Pipeline) OnOutput(handler process.OnPipeOutputFunc) process.Pipeline

OnOutput provides a mock function with given fields: handler

func (*Pipeline) Path added in v1.17.0

func (_m *Pipeline) Path(path string) process.Pipeline

Path provides a mock function with given fields: path

func (*Pipeline) Pipe added in v1.17.0

func (_m *Pipeline) Pipe(configurer func(process.Pipe)) process.Pipeline

Pipe provides a mock function with given fields: configurer

func (*Pipeline) Quietly added in v1.17.0

func (_m *Pipeline) Quietly() process.Pipeline

Quietly provides a mock function with no fields

func (*Pipeline) Run added in v1.17.0

func (_m *Pipeline) Run() process.Result

Run provides a mock function with no fields

func (*Pipeline) Start added in v1.17.0

func (_m *Pipeline) Start() (process.RunningPipe, error)

Start provides a mock function with no fields

func (*Pipeline) Timeout added in v1.17.0

func (_m *Pipeline) Timeout(timeout time.Duration) process.Pipeline

Timeout provides a mock function with given fields: timeout

func (*Pipeline) WithContext added in v1.17.0

func (_m *Pipeline) WithContext(ctx context.Context) process.Pipeline

WithContext provides a mock function with given fields: ctx

func (*Pipeline) WithSpinner added in v1.17.0

func (_m *Pipeline) WithSpinner(message ...string) process.Pipeline

WithSpinner provides a mock function with given fields: message

type Pipeline_DisableBuffering_Call added in v1.17.0

type Pipeline_DisableBuffering_Call struct {
	*mock.Call
}

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

func (*Pipeline_DisableBuffering_Call) Return added in v1.17.0

func (*Pipeline_DisableBuffering_Call) Run added in v1.17.0

func (*Pipeline_DisableBuffering_Call) RunAndReturn added in v1.17.0

type Pipeline_Env_Call added in v1.17.0

type Pipeline_Env_Call struct {
	*mock.Call
}

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

func (*Pipeline_Env_Call) Return added in v1.17.0

func (*Pipeline_Env_Call) Run added in v1.17.0

func (_c *Pipeline_Env_Call) Run(run func(vars map[string]string)) *Pipeline_Env_Call

func (*Pipeline_Env_Call) RunAndReturn added in v1.17.0

func (_c *Pipeline_Env_Call) RunAndReturn(run func(map[string]string) process.Pipeline) *Pipeline_Env_Call

type Pipeline_Expecter added in v1.17.0

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

func (*Pipeline_Expecter) DisableBuffering added in v1.17.0

func (_e *Pipeline_Expecter) DisableBuffering() *Pipeline_DisableBuffering_Call

DisableBuffering is a helper method to define mock.On call

func (*Pipeline_Expecter) Env added in v1.17.0

func (_e *Pipeline_Expecter) Env(vars interface{}) *Pipeline_Env_Call

Env is a helper method to define mock.On call

  • vars map[string]string

func (*Pipeline_Expecter) Input added in v1.17.0

func (_e *Pipeline_Expecter) Input(in interface{}) *Pipeline_Input_Call

Input is a helper method to define mock.On call

  • in io.Reader

func (*Pipeline_Expecter) OnOutput added in v1.17.0

func (_e *Pipeline_Expecter) OnOutput(handler interface{}) *Pipeline_OnOutput_Call

OnOutput is a helper method to define mock.On call

  • handler process.OnPipeOutputFunc

func (*Pipeline_Expecter) Path added in v1.17.0

func (_e *Pipeline_Expecter) Path(path interface{}) *Pipeline_Path_Call

Path is a helper method to define mock.On call

  • path string

func (*Pipeline_Expecter) Pipe added in v1.17.0

func (_e *Pipeline_Expecter) Pipe(configurer interface{}) *Pipeline_Pipe_Call

Pipe is a helper method to define mock.On call

  • configurer func(process.Pipe)

func (*Pipeline_Expecter) Quietly added in v1.17.0

Quietly is a helper method to define mock.On call

func (*Pipeline_Expecter) Run added in v1.17.0

Run is a helper method to define mock.On call

func (*Pipeline_Expecter) Start added in v1.17.0

Start is a helper method to define mock.On call

func (*Pipeline_Expecter) Timeout added in v1.17.0

func (_e *Pipeline_Expecter) Timeout(timeout interface{}) *Pipeline_Timeout_Call

Timeout is a helper method to define mock.On call

  • timeout time.Duration

func (*Pipeline_Expecter) WithContext added in v1.17.0

func (_e *Pipeline_Expecter) WithContext(ctx interface{}) *Pipeline_WithContext_Call

WithContext is a helper method to define mock.On call

  • ctx context.Context

func (*Pipeline_Expecter) WithSpinner added in v1.17.0

func (_e *Pipeline_Expecter) WithSpinner(message ...interface{}) *Pipeline_WithSpinner_Call

WithSpinner is a helper method to define mock.On call

  • message ...string

type Pipeline_Input_Call added in v1.17.0

type Pipeline_Input_Call struct {
	*mock.Call
}

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

func (*Pipeline_Input_Call) Return added in v1.17.0

func (*Pipeline_Input_Call) Run added in v1.17.0

func (_c *Pipeline_Input_Call) Run(run func(in io.Reader)) *Pipeline_Input_Call

func (*Pipeline_Input_Call) RunAndReturn added in v1.17.0

func (_c *Pipeline_Input_Call) RunAndReturn(run func(io.Reader) process.Pipeline) *Pipeline_Input_Call

type Pipeline_OnOutput_Call added in v1.17.0

type Pipeline_OnOutput_Call struct {
	*mock.Call
}

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

func (*Pipeline_OnOutput_Call) Return added in v1.17.0

func (*Pipeline_OnOutput_Call) Run added in v1.17.0

func (*Pipeline_OnOutput_Call) RunAndReturn added in v1.17.0

type Pipeline_Path_Call added in v1.17.0

type Pipeline_Path_Call struct {
	*mock.Call
}

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

func (*Pipeline_Path_Call) Return added in v1.17.0

func (*Pipeline_Path_Call) Run added in v1.17.0

func (_c *Pipeline_Path_Call) Run(run func(path string)) *Pipeline_Path_Call

func (*Pipeline_Path_Call) RunAndReturn added in v1.17.0

func (_c *Pipeline_Path_Call) RunAndReturn(run func(string) process.Pipeline) *Pipeline_Path_Call

type Pipeline_Pipe_Call added in v1.17.0

type Pipeline_Pipe_Call struct {
	*mock.Call
}

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

func (*Pipeline_Pipe_Call) Return added in v1.17.0

func (*Pipeline_Pipe_Call) Run added in v1.17.0

func (_c *Pipeline_Pipe_Call) Run(run func(configurer func(process.Pipe))) *Pipeline_Pipe_Call

func (*Pipeline_Pipe_Call) RunAndReturn added in v1.17.0

func (_c *Pipeline_Pipe_Call) RunAndReturn(run func(func(process.Pipe)) process.Pipeline) *Pipeline_Pipe_Call

type Pipeline_Quietly_Call added in v1.17.0

type Pipeline_Quietly_Call struct {
	*mock.Call
}

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

func (*Pipeline_Quietly_Call) Return added in v1.17.0

func (*Pipeline_Quietly_Call) Run added in v1.17.0

func (_c *Pipeline_Quietly_Call) Run(run func()) *Pipeline_Quietly_Call

func (*Pipeline_Quietly_Call) RunAndReturn added in v1.17.0

func (_c *Pipeline_Quietly_Call) RunAndReturn(run func() process.Pipeline) *Pipeline_Quietly_Call

type Pipeline_Run_Call added in v1.17.0

type Pipeline_Run_Call struct {
	*mock.Call
}

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

func (*Pipeline_Run_Call) Return added in v1.17.0

func (*Pipeline_Run_Call) Run added in v1.17.0

func (_c *Pipeline_Run_Call) Run(run func()) *Pipeline_Run_Call

func (*Pipeline_Run_Call) RunAndReturn added in v1.17.0

func (_c *Pipeline_Run_Call) RunAndReturn(run func() process.Result) *Pipeline_Run_Call

type Pipeline_Start_Call added in v1.17.0

type Pipeline_Start_Call struct {
	*mock.Call
}

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

func (*Pipeline_Start_Call) Return added in v1.17.0

func (*Pipeline_Start_Call) Run added in v1.17.0

func (_c *Pipeline_Start_Call) Run(run func()) *Pipeline_Start_Call

func (*Pipeline_Start_Call) RunAndReturn added in v1.17.0

func (_c *Pipeline_Start_Call) RunAndReturn(run func() (process.RunningPipe, error)) *Pipeline_Start_Call

type Pipeline_Timeout_Call added in v1.17.0

type Pipeline_Timeout_Call struct {
	*mock.Call
}

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

func (*Pipeline_Timeout_Call) Return added in v1.17.0

func (*Pipeline_Timeout_Call) Run added in v1.17.0

func (_c *Pipeline_Timeout_Call) Run(run func(timeout time.Duration)) *Pipeline_Timeout_Call

func (*Pipeline_Timeout_Call) RunAndReturn added in v1.17.0

type Pipeline_WithContext_Call added in v1.17.0

type Pipeline_WithContext_Call struct {
	*mock.Call
}

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

func (*Pipeline_WithContext_Call) Return added in v1.17.0

func (*Pipeline_WithContext_Call) Run added in v1.17.0

func (*Pipeline_WithContext_Call) RunAndReturn added in v1.17.0

type Pipeline_WithSpinner_Call added in v1.17.0

type Pipeline_WithSpinner_Call struct {
	*mock.Call
}

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

func (*Pipeline_WithSpinner_Call) Return added in v1.17.0

func (*Pipeline_WithSpinner_Call) Run added in v1.17.0

func (_c *Pipeline_WithSpinner_Call) Run(run func(message ...string)) *Pipeline_WithSpinner_Call

func (*Pipeline_WithSpinner_Call) RunAndReturn added in v1.17.0

type Pool added in v1.17.0

type Pool struct {
	mock.Mock
}

Pool is an autogenerated mock type for the Pool type

func NewPool added in v1.17.0

func NewPool(t interface {
	mock.TestingT
	Cleanup(func())
}) *Pool

NewPool creates a new instance of Pool. 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 (*Pool) Command added in v1.17.0

func (_m *Pool) Command(name string, arg ...string) process.PoolCommand

Command provides a mock function with given fields: name, arg

func (*Pool) EXPECT added in v1.17.0

func (_m *Pool) EXPECT() *Pool_Expecter

type PoolBuilder added in v1.17.0

type PoolBuilder struct {
	mock.Mock
}

PoolBuilder is an autogenerated mock type for the PoolBuilder type

func NewPoolBuilder added in v1.17.0

func NewPoolBuilder(t interface {
	mock.TestingT
	Cleanup(func())
}) *PoolBuilder

NewPoolBuilder creates a new instance of PoolBuilder. 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 (*PoolBuilder) Concurrency added in v1.17.0

func (_m *PoolBuilder) Concurrency(n int) process.PoolBuilder

Concurrency provides a mock function with given fields: n

func (*PoolBuilder) EXPECT added in v1.17.0

func (_m *PoolBuilder) EXPECT() *PoolBuilder_Expecter

func (*PoolBuilder) OnOutput added in v1.17.0

func (_m *PoolBuilder) OnOutput(handler process.OnPoolOutputFunc) process.PoolBuilder

OnOutput provides a mock function with given fields: handler

func (*PoolBuilder) Pool added in v1.17.0

func (_m *PoolBuilder) Pool(configurer func(process.Pool)) process.PoolBuilder

Pool provides a mock function with given fields: configurer

func (*PoolBuilder) Run added in v1.17.0

func (_m *PoolBuilder) Run() (map[string]process.Result, error)

Run provides a mock function with no fields

func (*PoolBuilder) Start added in v1.17.0

func (_m *PoolBuilder) Start() (process.RunningPool, error)

Start provides a mock function with no fields

func (*PoolBuilder) Timeout added in v1.17.0

func (_m *PoolBuilder) Timeout(timeout time.Duration) process.PoolBuilder

Timeout provides a mock function with given fields: timeout

func (*PoolBuilder) WithContext added in v1.17.0

func (_m *PoolBuilder) WithContext(ctx context.Context) process.PoolBuilder

WithContext provides a mock function with given fields: ctx

func (*PoolBuilder) WithSpinner added in v1.17.0

func (_m *PoolBuilder) WithSpinner(message ...string) process.PoolBuilder

WithSpinner provides a mock function with given fields: message

type PoolBuilder_Concurrency_Call added in v1.17.0

type PoolBuilder_Concurrency_Call struct {
	*mock.Call
}

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

func (*PoolBuilder_Concurrency_Call) Return added in v1.17.0

func (*PoolBuilder_Concurrency_Call) Run added in v1.17.0

func (*PoolBuilder_Concurrency_Call) RunAndReturn added in v1.17.0

type PoolBuilder_Expecter added in v1.17.0

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

func (*PoolBuilder_Expecter) Concurrency added in v1.17.0

func (_e *PoolBuilder_Expecter) Concurrency(n interface{}) *PoolBuilder_Concurrency_Call

Concurrency is a helper method to define mock.On call

  • n int

func (*PoolBuilder_Expecter) OnOutput added in v1.17.0

func (_e *PoolBuilder_Expecter) OnOutput(handler interface{}) *PoolBuilder_OnOutput_Call

OnOutput is a helper method to define mock.On call

  • handler process.OnPoolOutputFunc

func (*PoolBuilder_Expecter) Pool added in v1.17.0

func (_e *PoolBuilder_Expecter) Pool(configurer interface{}) *PoolBuilder_Pool_Call

Pool is a helper method to define mock.On call

  • configurer func(process.Pool)

func (*PoolBuilder_Expecter) Run added in v1.17.0

Run is a helper method to define mock.On call

func (*PoolBuilder_Expecter) Start added in v1.17.0

Start is a helper method to define mock.On call

func (*PoolBuilder_Expecter) Timeout added in v1.17.0

func (_e *PoolBuilder_Expecter) Timeout(timeout interface{}) *PoolBuilder_Timeout_Call

Timeout is a helper method to define mock.On call

  • timeout time.Duration

func (*PoolBuilder_Expecter) WithContext added in v1.17.0

func (_e *PoolBuilder_Expecter) WithContext(ctx interface{}) *PoolBuilder_WithContext_Call

WithContext is a helper method to define mock.On call

  • ctx context.Context

func (*PoolBuilder_Expecter) WithSpinner added in v1.17.0

func (_e *PoolBuilder_Expecter) WithSpinner(message ...interface{}) *PoolBuilder_WithSpinner_Call

WithSpinner is a helper method to define mock.On call

  • message ...string

type PoolBuilder_OnOutput_Call added in v1.17.0

type PoolBuilder_OnOutput_Call struct {
	*mock.Call
}

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

func (*PoolBuilder_OnOutput_Call) Return added in v1.17.0

func (*PoolBuilder_OnOutput_Call) Run added in v1.17.0

func (*PoolBuilder_OnOutput_Call) RunAndReturn added in v1.17.0

type PoolBuilder_Pool_Call added in v1.17.0

type PoolBuilder_Pool_Call struct {
	*mock.Call
}

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

func (*PoolBuilder_Pool_Call) Return added in v1.17.0

func (*PoolBuilder_Pool_Call) Run added in v1.17.0

func (_c *PoolBuilder_Pool_Call) Run(run func(configurer func(process.Pool))) *PoolBuilder_Pool_Call

func (*PoolBuilder_Pool_Call) RunAndReturn added in v1.17.0

func (_c *PoolBuilder_Pool_Call) RunAndReturn(run func(func(process.Pool)) process.PoolBuilder) *PoolBuilder_Pool_Call

type PoolBuilder_Run_Call added in v1.17.0

type PoolBuilder_Run_Call struct {
	*mock.Call
}

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

func (*PoolBuilder_Run_Call) Return added in v1.17.0

func (*PoolBuilder_Run_Call) Run added in v1.17.0

func (_c *PoolBuilder_Run_Call) Run(run func()) *PoolBuilder_Run_Call

func (*PoolBuilder_Run_Call) RunAndReturn added in v1.17.0

func (_c *PoolBuilder_Run_Call) RunAndReturn(run func() (map[string]process.Result, error)) *PoolBuilder_Run_Call

type PoolBuilder_Start_Call added in v1.17.0

type PoolBuilder_Start_Call struct {
	*mock.Call
}

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

func (*PoolBuilder_Start_Call) Return added in v1.17.0

func (*PoolBuilder_Start_Call) Run added in v1.17.0

func (_c *PoolBuilder_Start_Call) Run(run func()) *PoolBuilder_Start_Call

func (*PoolBuilder_Start_Call) RunAndReturn added in v1.17.0

func (_c *PoolBuilder_Start_Call) RunAndReturn(run func() (process.RunningPool, error)) *PoolBuilder_Start_Call

type PoolBuilder_Timeout_Call added in v1.17.0

type PoolBuilder_Timeout_Call struct {
	*mock.Call
}

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

func (*PoolBuilder_Timeout_Call) Return added in v1.17.0

func (*PoolBuilder_Timeout_Call) Run added in v1.17.0

func (_c *PoolBuilder_Timeout_Call) Run(run func(timeout time.Duration)) *PoolBuilder_Timeout_Call

func (*PoolBuilder_Timeout_Call) RunAndReturn added in v1.17.0

type PoolBuilder_WithContext_Call added in v1.17.0

type PoolBuilder_WithContext_Call struct {
	*mock.Call
}

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

func (*PoolBuilder_WithContext_Call) Return added in v1.17.0

func (*PoolBuilder_WithContext_Call) Run added in v1.17.0

func (*PoolBuilder_WithContext_Call) RunAndReturn added in v1.17.0

type PoolBuilder_WithSpinner_Call added in v1.17.0

type PoolBuilder_WithSpinner_Call struct {
	*mock.Call
}

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

func (*PoolBuilder_WithSpinner_Call) Return added in v1.17.0

func (*PoolBuilder_WithSpinner_Call) Run added in v1.17.0

func (_c *PoolBuilder_WithSpinner_Call) Run(run func(message ...string)) *PoolBuilder_WithSpinner_Call

func (*PoolBuilder_WithSpinner_Call) RunAndReturn added in v1.17.0

type PoolCommand added in v1.17.0

type PoolCommand struct {
	mock.Mock
}

PoolCommand is an autogenerated mock type for the PoolCommand type

func NewPoolCommand added in v1.17.0

func NewPoolCommand(t interface {
	mock.TestingT
	Cleanup(func())
}) *PoolCommand

NewPoolCommand creates a new instance of PoolCommand. 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 (*PoolCommand) As added in v1.17.0

func (_m *PoolCommand) As(key string) process.PoolCommand

As provides a mock function with given fields: key

func (*PoolCommand) DisableBuffering added in v1.17.0

func (_m *PoolCommand) DisableBuffering() process.PoolCommand

DisableBuffering provides a mock function with no fields

func (*PoolCommand) EXPECT added in v1.17.0

func (_m *PoolCommand) EXPECT() *PoolCommand_Expecter

func (*PoolCommand) Env added in v1.17.0

func (_m *PoolCommand) Env(vars map[string]string) process.PoolCommand

Env provides a mock function with given fields: vars

func (*PoolCommand) Input added in v1.17.0

func (_m *PoolCommand) Input(in io.Reader) process.PoolCommand

Input provides a mock function with given fields: in

func (*PoolCommand) Path added in v1.17.0

func (_m *PoolCommand) Path(path string) process.PoolCommand

Path provides a mock function with given fields: path

func (*PoolCommand) Quietly added in v1.17.0

func (_m *PoolCommand) Quietly() process.PoolCommand

Quietly provides a mock function with no fields

func (*PoolCommand) Timeout added in v1.17.0

func (_m *PoolCommand) Timeout(timeout time.Duration) process.PoolCommand

Timeout provides a mock function with given fields: timeout

func (*PoolCommand) WithContext added in v1.17.0

func (_m *PoolCommand) WithContext(ctx context.Context) process.PoolCommand

WithContext provides a mock function with given fields: ctx

type PoolCommand_As_Call added in v1.17.0

type PoolCommand_As_Call struct {
	*mock.Call
}

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

func (*PoolCommand_As_Call) Return added in v1.17.0

func (*PoolCommand_As_Call) Run added in v1.17.0

func (_c *PoolCommand_As_Call) Run(run func(key string)) *PoolCommand_As_Call

func (*PoolCommand_As_Call) RunAndReturn added in v1.17.0

func (_c *PoolCommand_As_Call) RunAndReturn(run func(string) process.PoolCommand) *PoolCommand_As_Call

type PoolCommand_DisableBuffering_Call added in v1.17.0

type PoolCommand_DisableBuffering_Call struct {
	*mock.Call
}

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

func (*PoolCommand_DisableBuffering_Call) Return added in v1.17.0

func (*PoolCommand_DisableBuffering_Call) Run added in v1.17.0

func (*PoolCommand_DisableBuffering_Call) RunAndReturn added in v1.17.0

type PoolCommand_Env_Call added in v1.17.0

type PoolCommand_Env_Call struct {
	*mock.Call
}

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

func (*PoolCommand_Env_Call) Return added in v1.17.0

func (*PoolCommand_Env_Call) Run added in v1.17.0

func (_c *PoolCommand_Env_Call) Run(run func(vars map[string]string)) *PoolCommand_Env_Call

func (*PoolCommand_Env_Call) RunAndReturn added in v1.17.0

func (_c *PoolCommand_Env_Call) RunAndReturn(run func(map[string]string) process.PoolCommand) *PoolCommand_Env_Call

type PoolCommand_Expecter added in v1.17.0

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

func (*PoolCommand_Expecter) As added in v1.17.0

func (_e *PoolCommand_Expecter) As(key interface{}) *PoolCommand_As_Call

As is a helper method to define mock.On call

  • key string

func (*PoolCommand_Expecter) DisableBuffering added in v1.17.0

DisableBuffering is a helper method to define mock.On call

func (*PoolCommand_Expecter) Env added in v1.17.0

func (_e *PoolCommand_Expecter) Env(vars interface{}) *PoolCommand_Env_Call

Env is a helper method to define mock.On call

  • vars map[string]string

func (*PoolCommand_Expecter) Input added in v1.17.0

func (_e *PoolCommand_Expecter) Input(in interface{}) *PoolCommand_Input_Call

Input is a helper method to define mock.On call

  • in io.Reader

func (*PoolCommand_Expecter) Path added in v1.17.0

func (_e *PoolCommand_Expecter) Path(path interface{}) *PoolCommand_Path_Call

Path is a helper method to define mock.On call

  • path string

func (*PoolCommand_Expecter) Quietly added in v1.17.0

Quietly is a helper method to define mock.On call

func (*PoolCommand_Expecter) Timeout added in v1.17.0

func (_e *PoolCommand_Expecter) Timeout(timeout interface{}) *PoolCommand_Timeout_Call

Timeout is a helper method to define mock.On call

  • timeout time.Duration

func (*PoolCommand_Expecter) WithContext added in v1.17.0

func (_e *PoolCommand_Expecter) WithContext(ctx interface{}) *PoolCommand_WithContext_Call

WithContext is a helper method to define mock.On call

  • ctx context.Context

type PoolCommand_Input_Call added in v1.17.0

type PoolCommand_Input_Call struct {
	*mock.Call
}

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

func (*PoolCommand_Input_Call) Return added in v1.17.0

func (*PoolCommand_Input_Call) Run added in v1.17.0

func (_c *PoolCommand_Input_Call) Run(run func(in io.Reader)) *PoolCommand_Input_Call

func (*PoolCommand_Input_Call) RunAndReturn added in v1.17.0

type PoolCommand_Path_Call added in v1.17.0

type PoolCommand_Path_Call struct {
	*mock.Call
}

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

func (*PoolCommand_Path_Call) Return added in v1.17.0

func (*PoolCommand_Path_Call) Run added in v1.17.0

func (_c *PoolCommand_Path_Call) Run(run func(path string)) *PoolCommand_Path_Call

func (*PoolCommand_Path_Call) RunAndReturn added in v1.17.0

type PoolCommand_Quietly_Call added in v1.17.0

type PoolCommand_Quietly_Call struct {
	*mock.Call
}

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

func (*PoolCommand_Quietly_Call) Return added in v1.17.0

func (*PoolCommand_Quietly_Call) Run added in v1.17.0

func (*PoolCommand_Quietly_Call) RunAndReturn added in v1.17.0

type PoolCommand_Timeout_Call added in v1.17.0

type PoolCommand_Timeout_Call struct {
	*mock.Call
}

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

func (*PoolCommand_Timeout_Call) Return added in v1.17.0

func (*PoolCommand_Timeout_Call) Run added in v1.17.0

func (_c *PoolCommand_Timeout_Call) Run(run func(timeout time.Duration)) *PoolCommand_Timeout_Call

func (*PoolCommand_Timeout_Call) RunAndReturn added in v1.17.0

type PoolCommand_WithContext_Call added in v1.17.0

type PoolCommand_WithContext_Call struct {
	*mock.Call
}

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

func (*PoolCommand_WithContext_Call) Return added in v1.17.0

func (*PoolCommand_WithContext_Call) Run added in v1.17.0

func (*PoolCommand_WithContext_Call) RunAndReturn added in v1.17.0

type Pool_Command_Call added in v1.17.0

type Pool_Command_Call struct {
	*mock.Call
}

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

func (*Pool_Command_Call) Return added in v1.17.0

func (*Pool_Command_Call) Run added in v1.17.0

func (_c *Pool_Command_Call) Run(run func(name string, arg ...string)) *Pool_Command_Call

func (*Pool_Command_Call) RunAndReturn added in v1.17.0

func (_c *Pool_Command_Call) RunAndReturn(run func(string, ...string) process.PoolCommand) *Pool_Command_Call

type Pool_Expecter added in v1.17.0

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

func (*Pool_Expecter) Command added in v1.17.0

func (_e *Pool_Expecter) Command(name interface{}, arg ...interface{}) *Pool_Command_Call

Command is a helper method to define mock.On call

  • name string
  • arg ...string

type Process

type Process struct {
	mock.Mock
}

Process is an autogenerated mock type for the Process type

func NewProcess

func NewProcess(t interface {
	mock.TestingT
	Cleanup(func())
}) *Process

NewProcess creates a new instance of Process. 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 (*Process) DisableBuffering added in v1.17.0

func (_m *Process) DisableBuffering() process.Process

DisableBuffering provides a mock function with no fields

func (*Process) EXPECT

func (_m *Process) EXPECT() *Process_Expecter

func (*Process) Env

func (_m *Process) Env(vars map[string]string) process.Process

Env provides a mock function with given fields: vars

func (*Process) Input

func (_m *Process) Input(in io.Reader) process.Process

Input provides a mock function with given fields: in

func (*Process) OnOutput

func (_m *Process) OnOutput(handler process.OnOutputFunc) process.Process

OnOutput provides a mock function with given fields: handler

func (*Process) Path

func (_m *Process) Path(path string) process.Process

Path provides a mock function with given fields: path

func (*Process) Pipe added in v1.17.0

func (_m *Process) Pipe(configurer func(process.Pipe)) process.Pipeline

Pipe provides a mock function with given fields: configurer

func (*Process) Pool added in v1.17.0

func (_m *Process) Pool(configurer func(process.Pool)) process.PoolBuilder

Pool provides a mock function with given fields: configurer

func (*Process) Quietly

func (_m *Process) Quietly() process.Process

Quietly provides a mock function with no fields

func (*Process) Run

func (_m *Process) Run(name string, arg ...string) process.Result

Run provides a mock function with given fields: name, arg

func (*Process) Start

func (_m *Process) Start(name string, arg ...string) (process.Running, error)

Start provides a mock function with given fields: name, arg

func (*Process) TTY

func (_m *Process) TTY() process.Process

TTY provides a mock function with no fields

func (*Process) Timeout

func (_m *Process) Timeout(timeout time.Duration) process.Process

Timeout provides a mock function with given fields: timeout

func (*Process) WithContext

func (_m *Process) WithContext(ctx context.Context) process.Process

WithContext provides a mock function with given fields: ctx

func (*Process) WithSpinner added in v1.17.0

func (_m *Process) WithSpinner(message ...string) process.Process

WithSpinner provides a mock function with given fields: message

type Process_DisableBuffering_Call added in v1.17.0

type Process_DisableBuffering_Call struct {
	*mock.Call
}

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

func (*Process_DisableBuffering_Call) Return added in v1.17.0

func (*Process_DisableBuffering_Call) Run added in v1.17.0

func (*Process_DisableBuffering_Call) RunAndReturn added in v1.17.0

type Process_Env_Call

type Process_Env_Call struct {
	*mock.Call
}

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

func (*Process_Env_Call) Return

func (*Process_Env_Call) Run

func (_c *Process_Env_Call) Run(run func(vars map[string]string)) *Process_Env_Call

func (*Process_Env_Call) RunAndReturn

func (_c *Process_Env_Call) RunAndReturn(run func(map[string]string) process.Process) *Process_Env_Call

type Process_Expecter

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

func (*Process_Expecter) DisableBuffering added in v1.17.0

func (_e *Process_Expecter) DisableBuffering() *Process_DisableBuffering_Call

DisableBuffering is a helper method to define mock.On call

func (*Process_Expecter) Env

func (_e *Process_Expecter) Env(vars interface{}) *Process_Env_Call

Env is a helper method to define mock.On call

  • vars map[string]string

func (*Process_Expecter) Input

func (_e *Process_Expecter) Input(in interface{}) *Process_Input_Call

Input is a helper method to define mock.On call

  • in io.Reader

func (*Process_Expecter) OnOutput

func (_e *Process_Expecter) OnOutput(handler interface{}) *Process_OnOutput_Call

OnOutput is a helper method to define mock.On call

  • handler process.OnOutputFunc

func (*Process_Expecter) Path

func (_e *Process_Expecter) Path(path interface{}) *Process_Path_Call

Path is a helper method to define mock.On call

  • path string

func (*Process_Expecter) Pipe added in v1.17.0

func (_e *Process_Expecter) Pipe(configurer interface{}) *Process_Pipe_Call

Pipe is a helper method to define mock.On call

  • configurer func(process.Pipe)

func (*Process_Expecter) Pool added in v1.17.0

func (_e *Process_Expecter) Pool(configurer interface{}) *Process_Pool_Call

Pool is a helper method to define mock.On call

  • configurer func(process.Pool)

func (*Process_Expecter) Quietly

func (_e *Process_Expecter) Quietly() *Process_Quietly_Call

Quietly is a helper method to define mock.On call

func (*Process_Expecter) Run

func (_e *Process_Expecter) Run(name interface{}, arg ...interface{}) *Process_Run_Call

Run is a helper method to define mock.On call

  • name string
  • arg ...string

func (*Process_Expecter) Start

func (_e *Process_Expecter) Start(name interface{}, arg ...interface{}) *Process_Start_Call

Start is a helper method to define mock.On call

  • name string
  • arg ...string

func (*Process_Expecter) TTY

TTY is a helper method to define mock.On call

func (*Process_Expecter) Timeout

func (_e *Process_Expecter) Timeout(timeout interface{}) *Process_Timeout_Call

Timeout is a helper method to define mock.On call

  • timeout time.Duration

func (*Process_Expecter) WithContext

func (_e *Process_Expecter) WithContext(ctx interface{}) *Process_WithContext_Call

WithContext is a helper method to define mock.On call

  • ctx context.Context

func (*Process_Expecter) WithSpinner added in v1.17.0

func (_e *Process_Expecter) WithSpinner(message ...interface{}) *Process_WithSpinner_Call

WithSpinner is a helper method to define mock.On call

  • message ...string

type Process_Input_Call

type Process_Input_Call struct {
	*mock.Call
}

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

func (*Process_Input_Call) Return

func (*Process_Input_Call) Run

func (_c *Process_Input_Call) Run(run func(in io.Reader)) *Process_Input_Call

func (*Process_Input_Call) RunAndReturn

func (_c *Process_Input_Call) RunAndReturn(run func(io.Reader) process.Process) *Process_Input_Call

type Process_OnOutput_Call

type Process_OnOutput_Call struct {
	*mock.Call
}

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

func (*Process_OnOutput_Call) Return

func (*Process_OnOutput_Call) Run

func (*Process_OnOutput_Call) RunAndReturn

type Process_Path_Call

type Process_Path_Call struct {
	*mock.Call
}

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

func (*Process_Path_Call) Return

func (*Process_Path_Call) Run

func (_c *Process_Path_Call) Run(run func(path string)) *Process_Path_Call

func (*Process_Path_Call) RunAndReturn

func (_c *Process_Path_Call) RunAndReturn(run func(string) process.Process) *Process_Path_Call

type Process_Pipe_Call added in v1.17.0

type Process_Pipe_Call struct {
	*mock.Call
}

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

func (*Process_Pipe_Call) Return added in v1.17.0

func (*Process_Pipe_Call) Run added in v1.17.0

func (_c *Process_Pipe_Call) Run(run func(configurer func(process.Pipe))) *Process_Pipe_Call

func (*Process_Pipe_Call) RunAndReturn added in v1.17.0

func (_c *Process_Pipe_Call) RunAndReturn(run func(func(process.Pipe)) process.Pipeline) *Process_Pipe_Call

type Process_Pool_Call added in v1.17.0

type Process_Pool_Call struct {
	*mock.Call
}

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

func (*Process_Pool_Call) Return added in v1.17.0

func (*Process_Pool_Call) Run added in v1.17.0

func (_c *Process_Pool_Call) Run(run func(configurer func(process.Pool))) *Process_Pool_Call

func (*Process_Pool_Call) RunAndReturn added in v1.17.0

func (_c *Process_Pool_Call) RunAndReturn(run func(func(process.Pool)) process.PoolBuilder) *Process_Pool_Call

type Process_Quietly_Call

type Process_Quietly_Call struct {
	*mock.Call
}

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

func (*Process_Quietly_Call) Return

func (*Process_Quietly_Call) Run

func (_c *Process_Quietly_Call) Run(run func()) *Process_Quietly_Call

func (*Process_Quietly_Call) RunAndReturn

func (_c *Process_Quietly_Call) RunAndReturn(run func() process.Process) *Process_Quietly_Call

type Process_Run_Call

type Process_Run_Call struct {
	*mock.Call
}

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

func (*Process_Run_Call) Return

func (*Process_Run_Call) Run

func (_c *Process_Run_Call) Run(run func(name string, arg ...string)) *Process_Run_Call

func (*Process_Run_Call) RunAndReturn

func (_c *Process_Run_Call) RunAndReturn(run func(string, ...string) process.Result) *Process_Run_Call

type Process_Start_Call

type Process_Start_Call struct {
	*mock.Call
}

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

func (*Process_Start_Call) Return

func (*Process_Start_Call) Run

func (_c *Process_Start_Call) Run(run func(name string, arg ...string)) *Process_Start_Call

func (*Process_Start_Call) RunAndReturn

func (_c *Process_Start_Call) RunAndReturn(run func(string, ...string) (process.Running, error)) *Process_Start_Call

type Process_TTY_Call

type Process_TTY_Call struct {
	*mock.Call
}

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

func (*Process_TTY_Call) Return

func (*Process_TTY_Call) Run

func (_c *Process_TTY_Call) Run(run func()) *Process_TTY_Call

func (*Process_TTY_Call) RunAndReturn

func (_c *Process_TTY_Call) RunAndReturn(run func() process.Process) *Process_TTY_Call

type Process_Timeout_Call

type Process_Timeout_Call struct {
	*mock.Call
}

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

func (*Process_Timeout_Call) Return

func (*Process_Timeout_Call) Run

func (_c *Process_Timeout_Call) Run(run func(timeout time.Duration)) *Process_Timeout_Call

func (*Process_Timeout_Call) RunAndReturn

type Process_WithContext_Call

type Process_WithContext_Call struct {
	*mock.Call
}

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

func (*Process_WithContext_Call) Return

func (*Process_WithContext_Call) Run

func (*Process_WithContext_Call) RunAndReturn

type Process_WithSpinner_Call added in v1.17.0

type Process_WithSpinner_Call struct {
	*mock.Call
}

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

func (*Process_WithSpinner_Call) Return added in v1.17.0

func (*Process_WithSpinner_Call) Run added in v1.17.0

func (_c *Process_WithSpinner_Call) Run(run func(message ...string)) *Process_WithSpinner_Call

func (*Process_WithSpinner_Call) RunAndReturn added in v1.17.0

type Result

type Result struct {
	mock.Mock
}

Result is an autogenerated mock type for the Result type

func NewResult

func NewResult(t interface {
	mock.TestingT
	Cleanup(func())
}) *Result

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

func (_m *Result) Command() string

Command provides a mock function with no fields

func (*Result) EXPECT

func (_m *Result) EXPECT() *Result_Expecter

func (*Result) Error added in v1.17.0

func (_m *Result) Error() error

Error provides a mock function with no fields

func (*Result) ErrorOutput

func (_m *Result) ErrorOutput() string

ErrorOutput provides a mock function with no fields

func (*Result) ExitCode

func (_m *Result) ExitCode() int

ExitCode provides a mock function with no fields

func (*Result) Failed

func (_m *Result) Failed() bool

Failed provides a mock function with no fields

func (*Result) Output

func (_m *Result) Output() string

Output provides a mock function with no fields

func (*Result) SeeInErrorOutput

func (_m *Result) SeeInErrorOutput(needle string) bool

SeeInErrorOutput provides a mock function with given fields: needle

func (*Result) SeeInOutput

func (_m *Result) SeeInOutput(needle string) bool

SeeInOutput provides a mock function with given fields: needle

func (*Result) Successful

func (_m *Result) Successful() bool

Successful provides a mock function with no fields

type Result_Command_Call

type Result_Command_Call struct {
	*mock.Call
}

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

func (*Result_Command_Call) Return

func (*Result_Command_Call) Run

func (_c *Result_Command_Call) Run(run func()) *Result_Command_Call

func (*Result_Command_Call) RunAndReturn

func (_c *Result_Command_Call) RunAndReturn(run func() string) *Result_Command_Call

type Result_ErrorOutput_Call

type Result_ErrorOutput_Call struct {
	*mock.Call
}

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

func (*Result_ErrorOutput_Call) Return

func (*Result_ErrorOutput_Call) Run

func (_c *Result_ErrorOutput_Call) Run(run func()) *Result_ErrorOutput_Call

func (*Result_ErrorOutput_Call) RunAndReturn

func (_c *Result_ErrorOutput_Call) RunAndReturn(run func() string) *Result_ErrorOutput_Call

type Result_Error_Call added in v1.17.0

type Result_Error_Call struct {
	*mock.Call
}

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

func (*Result_Error_Call) Return added in v1.17.0

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

func (*Result_Error_Call) Run added in v1.17.0

func (_c *Result_Error_Call) Run(run func()) *Result_Error_Call

func (*Result_Error_Call) RunAndReturn added in v1.17.0

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

type Result_ExitCode_Call

type Result_ExitCode_Call struct {
	*mock.Call
}

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

func (*Result_ExitCode_Call) Return

func (*Result_ExitCode_Call) Run

func (_c *Result_ExitCode_Call) Run(run func()) *Result_ExitCode_Call

func (*Result_ExitCode_Call) RunAndReturn

func (_c *Result_ExitCode_Call) RunAndReturn(run func() int) *Result_ExitCode_Call

type Result_Expecter

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

func (*Result_Expecter) Command

func (_e *Result_Expecter) Command() *Result_Command_Call

Command is a helper method to define mock.On call

func (*Result_Expecter) Error added in v1.17.0

func (_e *Result_Expecter) Error() *Result_Error_Call

Error is a helper method to define mock.On call

func (*Result_Expecter) ErrorOutput

func (_e *Result_Expecter) ErrorOutput() *Result_ErrorOutput_Call

ErrorOutput is a helper method to define mock.On call

func (*Result_Expecter) ExitCode

func (_e *Result_Expecter) ExitCode() *Result_ExitCode_Call

ExitCode is a helper method to define mock.On call

func (*Result_Expecter) Failed

func (_e *Result_Expecter) Failed() *Result_Failed_Call

Failed is a helper method to define mock.On call

func (*Result_Expecter) Output

func (_e *Result_Expecter) Output() *Result_Output_Call

Output is a helper method to define mock.On call

func (*Result_Expecter) SeeInErrorOutput

func (_e *Result_Expecter) SeeInErrorOutput(needle interface{}) *Result_SeeInErrorOutput_Call

SeeInErrorOutput is a helper method to define mock.On call

  • needle string

func (*Result_Expecter) SeeInOutput

func (_e *Result_Expecter) SeeInOutput(needle interface{}) *Result_SeeInOutput_Call

SeeInOutput is a helper method to define mock.On call

  • needle string

func (*Result_Expecter) Successful

func (_e *Result_Expecter) Successful() *Result_Successful_Call

Successful is a helper method to define mock.On call

type Result_Failed_Call

type Result_Failed_Call struct {
	*mock.Call
}

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

func (*Result_Failed_Call) Return

func (_c *Result_Failed_Call) Return(_a0 bool) *Result_Failed_Call

func (*Result_Failed_Call) Run

func (_c *Result_Failed_Call) Run(run func()) *Result_Failed_Call

func (*Result_Failed_Call) RunAndReturn

func (_c *Result_Failed_Call) RunAndReturn(run func() bool) *Result_Failed_Call

type Result_Output_Call

type Result_Output_Call struct {
	*mock.Call
}

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

func (*Result_Output_Call) Return

func (_c *Result_Output_Call) Return(_a0 string) *Result_Output_Call

func (*Result_Output_Call) Run

func (_c *Result_Output_Call) Run(run func()) *Result_Output_Call

func (*Result_Output_Call) RunAndReturn

func (_c *Result_Output_Call) RunAndReturn(run func() string) *Result_Output_Call

type Result_SeeInErrorOutput_Call

type Result_SeeInErrorOutput_Call struct {
	*mock.Call
}

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

func (*Result_SeeInErrorOutput_Call) Return

func (*Result_SeeInErrorOutput_Call) Run

func (*Result_SeeInErrorOutput_Call) RunAndReturn

type Result_SeeInOutput_Call

type Result_SeeInOutput_Call struct {
	*mock.Call
}

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

func (*Result_SeeInOutput_Call) Return

func (*Result_SeeInOutput_Call) Run

func (_c *Result_SeeInOutput_Call) Run(run func(needle string)) *Result_SeeInOutput_Call

func (*Result_SeeInOutput_Call) RunAndReturn

func (_c *Result_SeeInOutput_Call) RunAndReturn(run func(string) bool) *Result_SeeInOutput_Call

type Result_Successful_Call

type Result_Successful_Call struct {
	*mock.Call
}

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

func (*Result_Successful_Call) Return

func (*Result_Successful_Call) Run

func (_c *Result_Successful_Call) Run(run func()) *Result_Successful_Call

func (*Result_Successful_Call) RunAndReturn

func (_c *Result_Successful_Call) RunAndReturn(run func() bool) *Result_Successful_Call

type Running

type Running struct {
	mock.Mock
}

Running is an autogenerated mock type for the Running type

func NewRunning

func NewRunning(t interface {
	mock.TestingT
	Cleanup(func())
}) *Running

NewRunning creates a new instance of Running. 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 (*Running) Done added in v1.17.0

func (_m *Running) Done() <-chan struct{}

Done provides a mock function with no fields

func (*Running) EXPECT

func (_m *Running) EXPECT() *Running_Expecter

func (*Running) ErrorOutput

func (_m *Running) ErrorOutput() string

ErrorOutput provides a mock function with no fields

func (*Running) Output

func (_m *Running) Output() string

Output provides a mock function with no fields

func (*Running) PID

func (_m *Running) PID() int

PID provides a mock function with no fields

func (*Running) Running

func (_m *Running) Running() bool

Running provides a mock function with no fields

func (*Running) Signal

func (_m *Running) Signal(sig os.Signal) error

Signal provides a mock function with given fields: sig

func (*Running) Stop

func (_m *Running) Stop(timeout time.Duration, sig ...os.Signal) error

Stop provides a mock function with given fields: timeout, sig

func (*Running) Wait

func (_m *Running) Wait() process.Result

Wait provides a mock function with no fields

type RunningPipe added in v1.17.0

type RunningPipe struct {
	mock.Mock
}

RunningPipe is an autogenerated mock type for the RunningPipe type

func NewRunningPipe added in v1.17.0

func NewRunningPipe(t interface {
	mock.TestingT
	Cleanup(func())
}) *RunningPipe

NewRunningPipe creates a new instance of RunningPipe. 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 (*RunningPipe) Done added in v1.17.0

func (_m *RunningPipe) Done() <-chan struct{}

Done provides a mock function with no fields

func (*RunningPipe) EXPECT added in v1.17.0

func (_m *RunningPipe) EXPECT() *RunningPipe_Expecter

func (*RunningPipe) PIDs added in v1.17.0

func (_m *RunningPipe) PIDs() map[string]int

PIDs provides a mock function with no fields

func (*RunningPipe) Running added in v1.17.0

func (_m *RunningPipe) Running() bool

Running provides a mock function with no fields

func (*RunningPipe) Signal added in v1.17.0

func (_m *RunningPipe) Signal(sig os.Signal) error

Signal provides a mock function with given fields: sig

func (*RunningPipe) Stop added in v1.17.0

func (_m *RunningPipe) Stop(timeout time.Duration, sig ...os.Signal) error

Stop provides a mock function with given fields: timeout, sig

func (*RunningPipe) Wait added in v1.17.0

func (_m *RunningPipe) Wait() process.Result

Wait provides a mock function with no fields

type RunningPipe_Done_Call added in v1.17.0

type RunningPipe_Done_Call struct {
	*mock.Call
}

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

func (*RunningPipe_Done_Call) Return added in v1.17.0

func (_c *RunningPipe_Done_Call) Return(_a0 <-chan struct{}) *RunningPipe_Done_Call

func (*RunningPipe_Done_Call) Run added in v1.17.0

func (_c *RunningPipe_Done_Call) Run(run func()) *RunningPipe_Done_Call

func (*RunningPipe_Done_Call) RunAndReturn added in v1.17.0

func (_c *RunningPipe_Done_Call) RunAndReturn(run func() <-chan struct{}) *RunningPipe_Done_Call

type RunningPipe_Expecter added in v1.17.0

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

func (*RunningPipe_Expecter) Done added in v1.17.0

Done is a helper method to define mock.On call

func (*RunningPipe_Expecter) PIDs added in v1.17.0

PIDs is a helper method to define mock.On call

func (*RunningPipe_Expecter) Running added in v1.17.0

Running is a helper method to define mock.On call

func (*RunningPipe_Expecter) Signal added in v1.17.0

func (_e *RunningPipe_Expecter) Signal(sig interface{}) *RunningPipe_Signal_Call

Signal is a helper method to define mock.On call

  • sig os.Signal

func (*RunningPipe_Expecter) Stop added in v1.17.0

func (_e *RunningPipe_Expecter) Stop(timeout interface{}, sig ...interface{}) *RunningPipe_Stop_Call

Stop is a helper method to define mock.On call

  • timeout time.Duration
  • sig ...os.Signal

func (*RunningPipe_Expecter) Wait added in v1.17.0

Wait is a helper method to define mock.On call

type RunningPipe_PIDs_Call added in v1.17.0

type RunningPipe_PIDs_Call struct {
	*mock.Call
}

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

func (*RunningPipe_PIDs_Call) Return added in v1.17.0

func (*RunningPipe_PIDs_Call) Run added in v1.17.0

func (_c *RunningPipe_PIDs_Call) Run(run func()) *RunningPipe_PIDs_Call

func (*RunningPipe_PIDs_Call) RunAndReturn added in v1.17.0

func (_c *RunningPipe_PIDs_Call) RunAndReturn(run func() map[string]int) *RunningPipe_PIDs_Call

type RunningPipe_Running_Call added in v1.17.0

type RunningPipe_Running_Call struct {
	*mock.Call
}

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

func (*RunningPipe_Running_Call) Return added in v1.17.0

func (*RunningPipe_Running_Call) Run added in v1.17.0

func (*RunningPipe_Running_Call) RunAndReturn added in v1.17.0

func (_c *RunningPipe_Running_Call) RunAndReturn(run func() bool) *RunningPipe_Running_Call

type RunningPipe_Signal_Call added in v1.17.0

type RunningPipe_Signal_Call struct {
	*mock.Call
}

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

func (*RunningPipe_Signal_Call) Return added in v1.17.0

func (*RunningPipe_Signal_Call) Run added in v1.17.0

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

func (*RunningPipe_Signal_Call) RunAndReturn added in v1.17.0

func (_c *RunningPipe_Signal_Call) RunAndReturn(run func(os.Signal) error) *RunningPipe_Signal_Call

type RunningPipe_Stop_Call added in v1.17.0

type RunningPipe_Stop_Call struct {
	*mock.Call
}

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

func (*RunningPipe_Stop_Call) Return added in v1.17.0

func (*RunningPipe_Stop_Call) Run added in v1.17.0

func (_c *RunningPipe_Stop_Call) Run(run func(timeout time.Duration, sig ...os.Signal)) *RunningPipe_Stop_Call

func (*RunningPipe_Stop_Call) RunAndReturn added in v1.17.0

func (_c *RunningPipe_Stop_Call) RunAndReturn(run func(time.Duration, ...os.Signal) error) *RunningPipe_Stop_Call

type RunningPipe_Wait_Call added in v1.17.0

type RunningPipe_Wait_Call struct {
	*mock.Call
}

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

func (*RunningPipe_Wait_Call) Return added in v1.17.0

func (*RunningPipe_Wait_Call) Run added in v1.17.0

func (_c *RunningPipe_Wait_Call) Run(run func()) *RunningPipe_Wait_Call

func (*RunningPipe_Wait_Call) RunAndReturn added in v1.17.0

func (_c *RunningPipe_Wait_Call) RunAndReturn(run func() process.Result) *RunningPipe_Wait_Call

type RunningPool added in v1.17.0

type RunningPool struct {
	mock.Mock
}

RunningPool is an autogenerated mock type for the RunningPool type

func NewRunningPool added in v1.17.0

func NewRunningPool(t interface {
	mock.TestingT
	Cleanup(func())
}) *RunningPool

NewRunningPool creates a new instance of RunningPool. 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 (*RunningPool) Done added in v1.17.0

func (_m *RunningPool) Done() <-chan struct{}

Done provides a mock function with no fields

func (*RunningPool) EXPECT added in v1.17.0

func (_m *RunningPool) EXPECT() *RunningPool_Expecter

func (*RunningPool) PIDs added in v1.17.0

func (_m *RunningPool) PIDs() map[string]int

PIDs provides a mock function with no fields

func (*RunningPool) Running added in v1.17.0

func (_m *RunningPool) Running() bool

Running provides a mock function with no fields

func (*RunningPool) Signal added in v1.17.0

func (_m *RunningPool) Signal(sig os.Signal) error

Signal provides a mock function with given fields: sig

func (*RunningPool) Stop added in v1.17.0

func (_m *RunningPool) Stop(timeout time.Duration, sig ...os.Signal) error

Stop provides a mock function with given fields: timeout, sig

func (*RunningPool) Wait added in v1.17.0

func (_m *RunningPool) Wait() map[string]process.Result

Wait provides a mock function with no fields

type RunningPool_Done_Call added in v1.17.0

type RunningPool_Done_Call struct {
	*mock.Call
}

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

func (*RunningPool_Done_Call) Return added in v1.17.0

func (_c *RunningPool_Done_Call) Return(_a0 <-chan struct{}) *RunningPool_Done_Call

func (*RunningPool_Done_Call) Run added in v1.17.0

func (_c *RunningPool_Done_Call) Run(run func()) *RunningPool_Done_Call

func (*RunningPool_Done_Call) RunAndReturn added in v1.17.0

func (_c *RunningPool_Done_Call) RunAndReturn(run func() <-chan struct{}) *RunningPool_Done_Call

type RunningPool_Expecter added in v1.17.0

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

func (*RunningPool_Expecter) Done added in v1.17.0

Done is a helper method to define mock.On call

func (*RunningPool_Expecter) PIDs added in v1.17.0

PIDs is a helper method to define mock.On call

func (*RunningPool_Expecter) Running added in v1.17.0

Running is a helper method to define mock.On call

func (*RunningPool_Expecter) Signal added in v1.17.0

func (_e *RunningPool_Expecter) Signal(sig interface{}) *RunningPool_Signal_Call

Signal is a helper method to define mock.On call

  • sig os.Signal

func (*RunningPool_Expecter) Stop added in v1.17.0

func (_e *RunningPool_Expecter) Stop(timeout interface{}, sig ...interface{}) *RunningPool_Stop_Call

Stop is a helper method to define mock.On call

  • timeout time.Duration
  • sig ...os.Signal

func (*RunningPool_Expecter) Wait added in v1.17.0

Wait is a helper method to define mock.On call

type RunningPool_PIDs_Call added in v1.17.0

type RunningPool_PIDs_Call struct {
	*mock.Call
}

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

func (*RunningPool_PIDs_Call) Return added in v1.17.0

func (*RunningPool_PIDs_Call) Run added in v1.17.0

func (_c *RunningPool_PIDs_Call) Run(run func()) *RunningPool_PIDs_Call

func (*RunningPool_PIDs_Call) RunAndReturn added in v1.17.0

func (_c *RunningPool_PIDs_Call) RunAndReturn(run func() map[string]int) *RunningPool_PIDs_Call

type RunningPool_Running_Call added in v1.17.0

type RunningPool_Running_Call struct {
	*mock.Call
}

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

func (*RunningPool_Running_Call) Return added in v1.17.0

func (*RunningPool_Running_Call) Run added in v1.17.0

func (*RunningPool_Running_Call) RunAndReturn added in v1.17.0

func (_c *RunningPool_Running_Call) RunAndReturn(run func() bool) *RunningPool_Running_Call

type RunningPool_Signal_Call added in v1.17.0

type RunningPool_Signal_Call struct {
	*mock.Call
}

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

func (*RunningPool_Signal_Call) Return added in v1.17.0

func (*RunningPool_Signal_Call) Run added in v1.17.0

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

func (*RunningPool_Signal_Call) RunAndReturn added in v1.17.0

func (_c *RunningPool_Signal_Call) RunAndReturn(run func(os.Signal) error) *RunningPool_Signal_Call

type RunningPool_Stop_Call added in v1.17.0

type RunningPool_Stop_Call struct {
	*mock.Call
}

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

func (*RunningPool_Stop_Call) Return added in v1.17.0

func (*RunningPool_Stop_Call) Run added in v1.17.0

func (_c *RunningPool_Stop_Call) Run(run func(timeout time.Duration, sig ...os.Signal)) *RunningPool_Stop_Call

func (*RunningPool_Stop_Call) RunAndReturn added in v1.17.0

func (_c *RunningPool_Stop_Call) RunAndReturn(run func(time.Duration, ...os.Signal) error) *RunningPool_Stop_Call

type RunningPool_Wait_Call added in v1.17.0

type RunningPool_Wait_Call struct {
	*mock.Call
}

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

func (*RunningPool_Wait_Call) Return added in v1.17.0

func (*RunningPool_Wait_Call) Run added in v1.17.0

func (_c *RunningPool_Wait_Call) Run(run func()) *RunningPool_Wait_Call

func (*RunningPool_Wait_Call) RunAndReturn added in v1.17.0

func (_c *RunningPool_Wait_Call) RunAndReturn(run func() map[string]process.Result) *RunningPool_Wait_Call

type Running_Done_Call added in v1.17.0

type Running_Done_Call struct {
	*mock.Call
}

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

func (*Running_Done_Call) Return added in v1.17.0

func (_c *Running_Done_Call) Return(_a0 <-chan struct{}) *Running_Done_Call

func (*Running_Done_Call) Run added in v1.17.0

func (_c *Running_Done_Call) Run(run func()) *Running_Done_Call

func (*Running_Done_Call) RunAndReturn added in v1.17.0

func (_c *Running_Done_Call) RunAndReturn(run func() <-chan struct{}) *Running_Done_Call

type Running_ErrorOutput_Call

type Running_ErrorOutput_Call struct {
	*mock.Call
}

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

func (*Running_ErrorOutput_Call) Return

func (*Running_ErrorOutput_Call) Run

func (*Running_ErrorOutput_Call) RunAndReturn

func (_c *Running_ErrorOutput_Call) RunAndReturn(run func() string) *Running_ErrorOutput_Call

type Running_Expecter

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

func (*Running_Expecter) Done added in v1.17.0

func (_e *Running_Expecter) Done() *Running_Done_Call

Done is a helper method to define mock.On call

func (*Running_Expecter) ErrorOutput

func (_e *Running_Expecter) ErrorOutput() *Running_ErrorOutput_Call

ErrorOutput is a helper method to define mock.On call

func (*Running_Expecter) Output

func (_e *Running_Expecter) Output() *Running_Output_Call

Output is a helper method to define mock.On call

func (*Running_Expecter) PID

PID is a helper method to define mock.On call

func (*Running_Expecter) Running

func (_e *Running_Expecter) Running() *Running_Running_Call

Running is a helper method to define mock.On call

func (*Running_Expecter) Signal

func (_e *Running_Expecter) Signal(sig interface{}) *Running_Signal_Call

Signal is a helper method to define mock.On call

  • sig os.Signal

func (*Running_Expecter) Stop

func (_e *Running_Expecter) Stop(timeout interface{}, sig ...interface{}) *Running_Stop_Call

Stop is a helper method to define mock.On call

  • timeout time.Duration
  • sig ...os.Signal

func (*Running_Expecter) Wait

func (_e *Running_Expecter) Wait() *Running_Wait_Call

Wait is a helper method to define mock.On call

type Running_Output_Call

type Running_Output_Call struct {
	*mock.Call
}

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

func (*Running_Output_Call) Return

func (*Running_Output_Call) Run

func (_c *Running_Output_Call) Run(run func()) *Running_Output_Call

func (*Running_Output_Call) RunAndReturn

func (_c *Running_Output_Call) RunAndReturn(run func() string) *Running_Output_Call

type Running_PID_Call

type Running_PID_Call struct {
	*mock.Call
}

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

func (*Running_PID_Call) Return

func (_c *Running_PID_Call) Return(_a0 int) *Running_PID_Call

func (*Running_PID_Call) Run

func (_c *Running_PID_Call) Run(run func()) *Running_PID_Call

func (*Running_PID_Call) RunAndReturn

func (_c *Running_PID_Call) RunAndReturn(run func() int) *Running_PID_Call

type Running_Running_Call

type Running_Running_Call struct {
	*mock.Call
}

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

func (*Running_Running_Call) Return

func (*Running_Running_Call) Run

func (_c *Running_Running_Call) Run(run func()) *Running_Running_Call

func (*Running_Running_Call) RunAndReturn

func (_c *Running_Running_Call) RunAndReturn(run func() bool) *Running_Running_Call

type Running_Signal_Call

type Running_Signal_Call struct {
	*mock.Call
}

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

func (*Running_Signal_Call) Return

func (*Running_Signal_Call) Run

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

func (*Running_Signal_Call) RunAndReturn

func (_c *Running_Signal_Call) RunAndReturn(run func(os.Signal) error) *Running_Signal_Call

type Running_Stop_Call

type Running_Stop_Call struct {
	*mock.Call
}

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

func (*Running_Stop_Call) Return

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

func (*Running_Stop_Call) Run

func (_c *Running_Stop_Call) Run(run func(timeout time.Duration, sig ...os.Signal)) *Running_Stop_Call

func (*Running_Stop_Call) RunAndReturn

func (_c *Running_Stop_Call) RunAndReturn(run func(time.Duration, ...os.Signal) error) *Running_Stop_Call

type Running_Wait_Call

type Running_Wait_Call struct {
	*mock.Call
}

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

func (*Running_Wait_Call) Return

func (*Running_Wait_Call) Run

func (_c *Running_Wait_Call) Run(run func()) *Running_Wait_Call

func (*Running_Wait_Call) RunAndReturn

func (_c *Running_Wait_Call) RunAndReturn(run func() process.Result) *Running_Wait_Call

type Step added in v1.17.0

type Step struct {
	mock.Mock
}

Step is an autogenerated mock type for the Step type

func NewStep added in v1.17.0

func NewStep(t interface {
	mock.TestingT
	Cleanup(func())
}) *Step

NewStep creates a new instance of Step. 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 (*Step) As added in v1.17.0

func (_m *Step) As(key string) process.PipeCommand

As provides a mock function with given fields: key

func (*Step) EXPECT added in v1.17.0

func (_m *Step) EXPECT() *Step_Expecter

type Step_As_Call added in v1.17.0

type Step_As_Call struct {
	*mock.Call
}

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

func (*Step_As_Call) Return added in v1.17.0

func (_c *Step_As_Call) Return(_a0 process.PipeCommand) *Step_As_Call

func (*Step_As_Call) Run added in v1.17.0

func (_c *Step_As_Call) Run(run func(key string)) *Step_As_Call

func (*Step_As_Call) RunAndReturn added in v1.17.0

func (_c *Step_As_Call) RunAndReturn(run func(string) process.PipeCommand) *Step_As_Call

type Step_Expecter added in v1.17.0

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

func (*Step_Expecter) As added in v1.17.0

func (_e *Step_Expecter) As(key interface{}) *Step_As_Call

As is a helper method to define mock.On call

  • key string

Jump to

Keyboard shortcuts

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