Documentation
¶
Index ¶
- type OnOutputFunc
- type OnOutputFunc_Execute_Call
- func (_c *OnOutputFunc_Execute_Call) Return() *OnOutputFunc_Execute_Call
- func (_c *OnOutputFunc_Execute_Call) Run(run func(typ process.OutputType, line []byte)) *OnOutputFunc_Execute_Call
- func (_c *OnOutputFunc_Execute_Call) RunAndReturn(run func(process.OutputType, []byte)) *OnOutputFunc_Execute_Call
- type OnOutputFunc_Expecter
- type OnPipeOutputFunc
- type OnPipeOutputFunc_Execute_Call
- func (_c *OnPipeOutputFunc_Execute_Call) Return() *OnPipeOutputFunc_Execute_Call
- func (_c *OnPipeOutputFunc_Execute_Call) Run(run func(typ process.OutputType, line []byte, key string)) *OnPipeOutputFunc_Execute_Call
- func (_c *OnPipeOutputFunc_Execute_Call) RunAndReturn(run func(process.OutputType, []byte, string)) *OnPipeOutputFunc_Execute_Call
- type OnPipeOutputFunc_Expecter
- type OnPoolOutputFunc
- type OnPoolOutputFunc_Execute_Call
- func (_c *OnPoolOutputFunc_Execute_Call) Return() *OnPoolOutputFunc_Execute_Call
- func (_c *OnPoolOutputFunc_Execute_Call) Run(run func(typ process.OutputType, line []byte, key string)) *OnPoolOutputFunc_Execute_Call
- func (_c *OnPoolOutputFunc_Execute_Call) RunAndReturn(run func(process.OutputType, []byte, string)) *OnPoolOutputFunc_Execute_Call
- type OnPoolOutputFunc_Expecter
- type Pipe
- type PipeBuilder
- type PipeBuilder_Command_Call
- func (_c *PipeBuilder_Command_Call) Return(_a0 *process.PipeCommand) *PipeBuilder_Command_Call
- func (_c *PipeBuilder_Command_Call) Run(run func(name string, arg ...string)) *PipeBuilder_Command_Call
- func (_c *PipeBuilder_Command_Call) RunAndReturn(run func(string, ...string) *process.PipeCommand) *PipeBuilder_Command_Call
- type PipeBuilder_Expecter
- type PipeCommand
- type PipeCommand_As_Call
- type PipeCommand_Expecter
- type PipeCommand_WithSpinner_Call
- func (_c *PipeCommand_WithSpinner_Call) Return(_a0 process.PipeCommand) *PipeCommand_WithSpinner_Call
- func (_c *PipeCommand_WithSpinner_Call) Run(run func(message ...string)) *PipeCommand_WithSpinner_Call
- func (_c *PipeCommand_WithSpinner_Call) RunAndReturn(run func(...string) process.PipeCommand) *PipeCommand_WithSpinner_Call
- type Pipe_Command_Call
- type Pipe_Expecter
- type Pipeline
- func (_m *Pipeline) DisableBuffering() process.Pipeline
- func (_m *Pipeline) EXPECT() *Pipeline_Expecter
- func (_m *Pipeline) Env(vars map[string]string) process.Pipeline
- func (_m *Pipeline) Input(in io.Reader) process.Pipeline
- func (_m *Pipeline) OnOutput(handler process.OnPipeOutputFunc) process.Pipeline
- func (_m *Pipeline) Path(path string) process.Pipeline
- func (_m *Pipeline) Pipe(configurer func(process.Pipe)) process.Pipeline
- func (_m *Pipeline) Quietly() process.Pipeline
- func (_m *Pipeline) Run() process.Result
- func (_m *Pipeline) Start() (process.RunningPipe, error)
- func (_m *Pipeline) Timeout(timeout time.Duration) process.Pipeline
- func (_m *Pipeline) WithContext(ctx context.Context) process.Pipeline
- func (_m *Pipeline) WithSpinner(message ...string) process.Pipeline
- type Pipeline_DisableBuffering_Call
- func (_c *Pipeline_DisableBuffering_Call) Return(_a0 process.Pipeline) *Pipeline_DisableBuffering_Call
- func (_c *Pipeline_DisableBuffering_Call) Run(run func()) *Pipeline_DisableBuffering_Call
- func (_c *Pipeline_DisableBuffering_Call) RunAndReturn(run func() process.Pipeline) *Pipeline_DisableBuffering_Call
- type Pipeline_Env_Call
- type Pipeline_Expecter
- func (_e *Pipeline_Expecter) DisableBuffering() *Pipeline_DisableBuffering_Call
- func (_e *Pipeline_Expecter) Env(vars interface{}) *Pipeline_Env_Call
- func (_e *Pipeline_Expecter) Input(in interface{}) *Pipeline_Input_Call
- func (_e *Pipeline_Expecter) OnOutput(handler interface{}) *Pipeline_OnOutput_Call
- func (_e *Pipeline_Expecter) Path(path interface{}) *Pipeline_Path_Call
- func (_e *Pipeline_Expecter) Pipe(configurer interface{}) *Pipeline_Pipe_Call
- func (_e *Pipeline_Expecter) Quietly() *Pipeline_Quietly_Call
- func (_e *Pipeline_Expecter) Run() *Pipeline_Run_Call
- func (_e *Pipeline_Expecter) Start() *Pipeline_Start_Call
- func (_e *Pipeline_Expecter) Timeout(timeout interface{}) *Pipeline_Timeout_Call
- func (_e *Pipeline_Expecter) WithContext(ctx interface{}) *Pipeline_WithContext_Call
- func (_e *Pipeline_Expecter) WithSpinner(message ...interface{}) *Pipeline_WithSpinner_Call
- type Pipeline_Input_Call
- type Pipeline_OnOutput_Call
- func (_c *Pipeline_OnOutput_Call) Return(_a0 process.Pipeline) *Pipeline_OnOutput_Call
- func (_c *Pipeline_OnOutput_Call) Run(run func(handler process.OnPipeOutputFunc)) *Pipeline_OnOutput_Call
- func (_c *Pipeline_OnOutput_Call) RunAndReturn(run func(process.OnPipeOutputFunc) process.Pipeline) *Pipeline_OnOutput_Call
- type Pipeline_Path_Call
- type Pipeline_Pipe_Call
- type Pipeline_Quietly_Call
- type Pipeline_Run_Call
- type Pipeline_Start_Call
- type Pipeline_Timeout_Call
- type Pipeline_WithContext_Call
- func (_c *Pipeline_WithContext_Call) Return(_a0 process.Pipeline) *Pipeline_WithContext_Call
- func (_c *Pipeline_WithContext_Call) Run(run func(ctx context.Context)) *Pipeline_WithContext_Call
- func (_c *Pipeline_WithContext_Call) RunAndReturn(run func(context.Context) process.Pipeline) *Pipeline_WithContext_Call
- type Pipeline_WithSpinner_Call
- func (_c *Pipeline_WithSpinner_Call) Return(_a0 process.Pipeline) *Pipeline_WithSpinner_Call
- func (_c *Pipeline_WithSpinner_Call) Run(run func(message ...string)) *Pipeline_WithSpinner_Call
- func (_c *Pipeline_WithSpinner_Call) RunAndReturn(run func(...string) process.Pipeline) *Pipeline_WithSpinner_Call
- type Pool
- type PoolBuilder
- func (_m *PoolBuilder) Concurrency(n int) process.PoolBuilder
- func (_m *PoolBuilder) EXPECT() *PoolBuilder_Expecter
- func (_m *PoolBuilder) OnOutput(handler process.OnPoolOutputFunc) process.PoolBuilder
- func (_m *PoolBuilder) Pool(configurer func(process.Pool)) process.PoolBuilder
- func (_m *PoolBuilder) Run() (map[string]process.Result, error)
- func (_m *PoolBuilder) Start() (process.RunningPool, error)
- func (_m *PoolBuilder) Timeout(timeout time.Duration) process.PoolBuilder
- func (_m *PoolBuilder) WithContext(ctx context.Context) process.PoolBuilder
- func (_m *PoolBuilder) WithSpinner(message ...string) process.PoolBuilder
- type PoolBuilder_Concurrency_Call
- func (_c *PoolBuilder_Concurrency_Call) Return(_a0 process.PoolBuilder) *PoolBuilder_Concurrency_Call
- func (_c *PoolBuilder_Concurrency_Call) Run(run func(n int)) *PoolBuilder_Concurrency_Call
- func (_c *PoolBuilder_Concurrency_Call) RunAndReturn(run func(int) process.PoolBuilder) *PoolBuilder_Concurrency_Call
- type PoolBuilder_Expecter
- func (_e *PoolBuilder_Expecter) Concurrency(n interface{}) *PoolBuilder_Concurrency_Call
- func (_e *PoolBuilder_Expecter) OnOutput(handler interface{}) *PoolBuilder_OnOutput_Call
- func (_e *PoolBuilder_Expecter) Pool(configurer interface{}) *PoolBuilder_Pool_Call
- func (_e *PoolBuilder_Expecter) Run() *PoolBuilder_Run_Call
- func (_e *PoolBuilder_Expecter) Start() *PoolBuilder_Start_Call
- func (_e *PoolBuilder_Expecter) Timeout(timeout interface{}) *PoolBuilder_Timeout_Call
- func (_e *PoolBuilder_Expecter) WithContext(ctx interface{}) *PoolBuilder_WithContext_Call
- func (_e *PoolBuilder_Expecter) WithSpinner(message ...interface{}) *PoolBuilder_WithSpinner_Call
- type PoolBuilder_OnOutput_Call
- func (_c *PoolBuilder_OnOutput_Call) Return(_a0 process.PoolBuilder) *PoolBuilder_OnOutput_Call
- func (_c *PoolBuilder_OnOutput_Call) Run(run func(handler process.OnPoolOutputFunc)) *PoolBuilder_OnOutput_Call
- func (_c *PoolBuilder_OnOutput_Call) RunAndReturn(run func(process.OnPoolOutputFunc) process.PoolBuilder) *PoolBuilder_OnOutput_Call
- type PoolBuilder_Pool_Call
- func (_c *PoolBuilder_Pool_Call) Return(_a0 process.PoolBuilder) *PoolBuilder_Pool_Call
- func (_c *PoolBuilder_Pool_Call) Run(run func(configurer func(process.Pool))) *PoolBuilder_Pool_Call
- func (_c *PoolBuilder_Pool_Call) RunAndReturn(run func(func(process.Pool)) process.PoolBuilder) *PoolBuilder_Pool_Call
- type PoolBuilder_Run_Call
- type PoolBuilder_Start_Call
- type PoolBuilder_Timeout_Call
- func (_c *PoolBuilder_Timeout_Call) Return(_a0 process.PoolBuilder) *PoolBuilder_Timeout_Call
- func (_c *PoolBuilder_Timeout_Call) Run(run func(timeout time.Duration)) *PoolBuilder_Timeout_Call
- func (_c *PoolBuilder_Timeout_Call) RunAndReturn(run func(time.Duration) process.PoolBuilder) *PoolBuilder_Timeout_Call
- type PoolBuilder_WithContext_Call
- func (_c *PoolBuilder_WithContext_Call) Return(_a0 process.PoolBuilder) *PoolBuilder_WithContext_Call
- func (_c *PoolBuilder_WithContext_Call) Run(run func(ctx context.Context)) *PoolBuilder_WithContext_Call
- func (_c *PoolBuilder_WithContext_Call) RunAndReturn(run func(context.Context) process.PoolBuilder) *PoolBuilder_WithContext_Call
- type PoolBuilder_WithSpinner_Call
- func (_c *PoolBuilder_WithSpinner_Call) Return(_a0 process.PoolBuilder) *PoolBuilder_WithSpinner_Call
- func (_c *PoolBuilder_WithSpinner_Call) Run(run func(message ...string)) *PoolBuilder_WithSpinner_Call
- func (_c *PoolBuilder_WithSpinner_Call) RunAndReturn(run func(...string) process.PoolBuilder) *PoolBuilder_WithSpinner_Call
- type PoolCommand
- func (_m *PoolCommand) As(key string) process.PoolCommand
- func (_m *PoolCommand) DisableBuffering() process.PoolCommand
- func (_m *PoolCommand) EXPECT() *PoolCommand_Expecter
- func (_m *PoolCommand) Env(vars map[string]string) process.PoolCommand
- func (_m *PoolCommand) Input(in io.Reader) process.PoolCommand
- func (_m *PoolCommand) Path(path string) process.PoolCommand
- func (_m *PoolCommand) Quietly() process.PoolCommand
- func (_m *PoolCommand) Timeout(timeout time.Duration) process.PoolCommand
- func (_m *PoolCommand) WithContext(ctx context.Context) process.PoolCommand
- type PoolCommand_As_Call
- type PoolCommand_DisableBuffering_Call
- func (_c *PoolCommand_DisableBuffering_Call) Return(_a0 process.PoolCommand) *PoolCommand_DisableBuffering_Call
- func (_c *PoolCommand_DisableBuffering_Call) Run(run func()) *PoolCommand_DisableBuffering_Call
- func (_c *PoolCommand_DisableBuffering_Call) RunAndReturn(run func() process.PoolCommand) *PoolCommand_DisableBuffering_Call
- type PoolCommand_Env_Call
- type PoolCommand_Expecter
- func (_e *PoolCommand_Expecter) As(key interface{}) *PoolCommand_As_Call
- func (_e *PoolCommand_Expecter) DisableBuffering() *PoolCommand_DisableBuffering_Call
- func (_e *PoolCommand_Expecter) Env(vars interface{}) *PoolCommand_Env_Call
- func (_e *PoolCommand_Expecter) Input(in interface{}) *PoolCommand_Input_Call
- func (_e *PoolCommand_Expecter) Path(path interface{}) *PoolCommand_Path_Call
- func (_e *PoolCommand_Expecter) Quietly() *PoolCommand_Quietly_Call
- func (_e *PoolCommand_Expecter) Timeout(timeout interface{}) *PoolCommand_Timeout_Call
- func (_e *PoolCommand_Expecter) WithContext(ctx interface{}) *PoolCommand_WithContext_Call
- type PoolCommand_Input_Call
- type PoolCommand_Path_Call
- type PoolCommand_Quietly_Call
- type PoolCommand_Timeout_Call
- func (_c *PoolCommand_Timeout_Call) Return(_a0 process.PoolCommand) *PoolCommand_Timeout_Call
- func (_c *PoolCommand_Timeout_Call) Run(run func(timeout time.Duration)) *PoolCommand_Timeout_Call
- func (_c *PoolCommand_Timeout_Call) RunAndReturn(run func(time.Duration) process.PoolCommand) *PoolCommand_Timeout_Call
- type PoolCommand_WithContext_Call
- func (_c *PoolCommand_WithContext_Call) Return(_a0 process.PoolCommand) *PoolCommand_WithContext_Call
- func (_c *PoolCommand_WithContext_Call) Run(run func(ctx context.Context)) *PoolCommand_WithContext_Call
- func (_c *PoolCommand_WithContext_Call) RunAndReturn(run func(context.Context) process.PoolCommand) *PoolCommand_WithContext_Call
- type Pool_Command_Call
- type Pool_Expecter
- type Process
- func (_m *Process) DisableBuffering() process.Process
- func (_m *Process) EXPECT() *Process_Expecter
- func (_m *Process) Env(vars map[string]string) process.Process
- func (_m *Process) Input(in io.Reader) process.Process
- func (_m *Process) OnOutput(handler process.OnOutputFunc) process.Process
- func (_m *Process) Path(path string) process.Process
- func (_m *Process) Pipe(configurer func(process.Pipe)) process.Pipeline
- func (_m *Process) Pool(configurer func(process.Pool)) process.PoolBuilder
- func (_m *Process) Quietly() process.Process
- func (_m *Process) Run(name string, arg ...string) process.Result
- func (_m *Process) Start(name string, arg ...string) (process.Running, error)
- func (_m *Process) TTY() process.Process
- func (_m *Process) Timeout(timeout time.Duration) process.Process
- func (_m *Process) WithContext(ctx context.Context) process.Process
- func (_m *Process) WithSpinner(message ...string) process.Process
- type Process_DisableBuffering_Call
- func (_c *Process_DisableBuffering_Call) Return(_a0 process.Process) *Process_DisableBuffering_Call
- func (_c *Process_DisableBuffering_Call) Run(run func()) *Process_DisableBuffering_Call
- func (_c *Process_DisableBuffering_Call) RunAndReturn(run func() process.Process) *Process_DisableBuffering_Call
- type Process_Env_Call
- type Process_Expecter
- func (_e *Process_Expecter) DisableBuffering() *Process_DisableBuffering_Call
- func (_e *Process_Expecter) Env(vars interface{}) *Process_Env_Call
- func (_e *Process_Expecter) Input(in interface{}) *Process_Input_Call
- func (_e *Process_Expecter) OnOutput(handler interface{}) *Process_OnOutput_Call
- func (_e *Process_Expecter) Path(path interface{}) *Process_Path_Call
- func (_e *Process_Expecter) Pipe(configurer interface{}) *Process_Pipe_Call
- func (_e *Process_Expecter) Pool(configurer interface{}) *Process_Pool_Call
- func (_e *Process_Expecter) Quietly() *Process_Quietly_Call
- func (_e *Process_Expecter) Run(name interface{}, arg ...interface{}) *Process_Run_Call
- func (_e *Process_Expecter) Start(name interface{}, arg ...interface{}) *Process_Start_Call
- func (_e *Process_Expecter) TTY() *Process_TTY_Call
- func (_e *Process_Expecter) Timeout(timeout interface{}) *Process_Timeout_Call
- func (_e *Process_Expecter) WithContext(ctx interface{}) *Process_WithContext_Call
- func (_e *Process_Expecter) WithSpinner(message ...interface{}) *Process_WithSpinner_Call
- type Process_Input_Call
- type Process_OnOutput_Call
- func (_c *Process_OnOutput_Call) Return(_a0 process.Process) *Process_OnOutput_Call
- func (_c *Process_OnOutput_Call) Run(run func(handler process.OnOutputFunc)) *Process_OnOutput_Call
- func (_c *Process_OnOutput_Call) RunAndReturn(run func(process.OnOutputFunc) process.Process) *Process_OnOutput_Call
- type Process_Path_Call
- type Process_Pipe_Call
- type Process_Pool_Call
- type Process_Quietly_Call
- type Process_Run_Call
- type Process_Start_Call
- type Process_TTY_Call
- type Process_Timeout_Call
- type Process_WithContext_Call
- func (_c *Process_WithContext_Call) Return(_a0 process.Process) *Process_WithContext_Call
- func (_c *Process_WithContext_Call) Run(run func(ctx context.Context)) *Process_WithContext_Call
- func (_c *Process_WithContext_Call) RunAndReturn(run func(context.Context) process.Process) *Process_WithContext_Call
- type Process_WithSpinner_Call
- type Result
- func (_m *Result) Command() string
- func (_m *Result) EXPECT() *Result_Expecter
- func (_m *Result) Error() error
- func (_m *Result) ErrorOutput() string
- func (_m *Result) ExitCode() int
- func (_m *Result) Failed() bool
- func (_m *Result) Output() string
- func (_m *Result) SeeInErrorOutput(needle string) bool
- func (_m *Result) SeeInOutput(needle string) bool
- func (_m *Result) Successful() bool
- type Result_Command_Call
- type Result_ErrorOutput_Call
- type Result_Error_Call
- type Result_ExitCode_Call
- type Result_Expecter
- func (_e *Result_Expecter) Command() *Result_Command_Call
- func (_e *Result_Expecter) Error() *Result_Error_Call
- func (_e *Result_Expecter) ErrorOutput() *Result_ErrorOutput_Call
- func (_e *Result_Expecter) ExitCode() *Result_ExitCode_Call
- func (_e *Result_Expecter) Failed() *Result_Failed_Call
- func (_e *Result_Expecter) Output() *Result_Output_Call
- func (_e *Result_Expecter) SeeInErrorOutput(needle interface{}) *Result_SeeInErrorOutput_Call
- func (_e *Result_Expecter) SeeInOutput(needle interface{}) *Result_SeeInOutput_Call
- func (_e *Result_Expecter) Successful() *Result_Successful_Call
- type Result_Failed_Call
- type Result_Output_Call
- type Result_SeeInErrorOutput_Call
- type Result_SeeInOutput_Call
- type Result_Successful_Call
- type Running
- func (_m *Running) Done() <-chan struct{}
- func (_m *Running) EXPECT() *Running_Expecter
- func (_m *Running) ErrorOutput() string
- func (_m *Running) Output() string
- func (_m *Running) PID() int
- func (_m *Running) Running() bool
- func (_m *Running) Signal(sig os.Signal) error
- func (_m *Running) Stop(timeout time.Duration, sig ...os.Signal) error
- func (_m *Running) Wait() process.Result
- type RunningPipe
- func (_m *RunningPipe) Done() <-chan struct{}
- func (_m *RunningPipe) EXPECT() *RunningPipe_Expecter
- func (_m *RunningPipe) PIDs() map[string]int
- func (_m *RunningPipe) Running() bool
- func (_m *RunningPipe) Signal(sig os.Signal) error
- func (_m *RunningPipe) Stop(timeout time.Duration, sig ...os.Signal) error
- func (_m *RunningPipe) Wait() process.Result
- type RunningPipe_Done_Call
- type RunningPipe_Expecter
- func (_e *RunningPipe_Expecter) Done() *RunningPipe_Done_Call
- func (_e *RunningPipe_Expecter) PIDs() *RunningPipe_PIDs_Call
- func (_e *RunningPipe_Expecter) Running() *RunningPipe_Running_Call
- func (_e *RunningPipe_Expecter) Signal(sig interface{}) *RunningPipe_Signal_Call
- func (_e *RunningPipe_Expecter) Stop(timeout interface{}, sig ...interface{}) *RunningPipe_Stop_Call
- func (_e *RunningPipe_Expecter) Wait() *RunningPipe_Wait_Call
- type RunningPipe_PIDs_Call
- type RunningPipe_Running_Call
- type RunningPipe_Signal_Call
- type RunningPipe_Stop_Call
- type RunningPipe_Wait_Call
- type RunningPool
- func (_m *RunningPool) Done() <-chan struct{}
- func (_m *RunningPool) EXPECT() *RunningPool_Expecter
- func (_m *RunningPool) PIDs() map[string]int
- func (_m *RunningPool) Running() bool
- func (_m *RunningPool) Signal(sig os.Signal) error
- func (_m *RunningPool) Stop(timeout time.Duration, sig ...os.Signal) error
- func (_m *RunningPool) Wait() map[string]process.Result
- type RunningPool_Done_Call
- type RunningPool_Expecter
- func (_e *RunningPool_Expecter) Done() *RunningPool_Done_Call
- func (_e *RunningPool_Expecter) PIDs() *RunningPool_PIDs_Call
- func (_e *RunningPool_Expecter) Running() *RunningPool_Running_Call
- func (_e *RunningPool_Expecter) Signal(sig interface{}) *RunningPool_Signal_Call
- func (_e *RunningPool_Expecter) Stop(timeout interface{}, sig ...interface{}) *RunningPool_Stop_Call
- func (_e *RunningPool_Expecter) Wait() *RunningPool_Wait_Call
- type RunningPool_PIDs_Call
- type RunningPool_Running_Call
- type RunningPool_Signal_Call
- type RunningPool_Stop_Call
- type RunningPool_Wait_Call
- type Running_Done_Call
- type Running_ErrorOutput_Call
- type Running_Expecter
- func (_e *Running_Expecter) Done() *Running_Done_Call
- func (_e *Running_Expecter) ErrorOutput() *Running_ErrorOutput_Call
- func (_e *Running_Expecter) Output() *Running_Output_Call
- func (_e *Running_Expecter) PID() *Running_PID_Call
- func (_e *Running_Expecter) Running() *Running_Running_Call
- func (_e *Running_Expecter) Signal(sig interface{}) *Running_Signal_Call
- func (_e *Running_Expecter) Stop(timeout interface{}, sig ...interface{}) *Running_Stop_Call
- func (_e *Running_Expecter) Wait() *Running_Wait_Call
- type Running_Output_Call
- type Running_PID_Call
- type Running_Running_Call
- type Running_Signal_Call
- type Running_Stop_Call
- type Running_Wait_Call
- type Step
- type Step_As_Call
- type Step_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OnOutputFunc ¶
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 ¶
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 (_c *OnOutputFunc_Execute_Call) Return() *OnOutputFunc_Execute_Call
func (*OnOutputFunc_Execute_Call) Run ¶
func (_c *OnOutputFunc_Execute_Call) Run(run func(typ process.OutputType, line []byte)) *OnOutputFunc_Execute_Call
func (*OnOutputFunc_Execute_Call) RunAndReturn ¶
func (_c *OnOutputFunc_Execute_Call) RunAndReturn(run func(process.OutputType, []byte)) *OnOutputFunc_Execute_Call
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
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 (_m *OnPipeOutputFunc) EXPECT() *OnPipeOutputFunc_Expecter
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
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 (_c *OnPipeOutputFunc_Execute_Call) Return() *OnPipeOutputFunc_Execute_Call
func (*OnPipeOutputFunc_Execute_Call) Run ¶ added in v1.17.0
func (_c *OnPipeOutputFunc_Execute_Call) Run(run func(typ process.OutputType, line []byte, key string)) *OnPipeOutputFunc_Execute_Call
func (*OnPipeOutputFunc_Execute_Call) RunAndReturn ¶ added in v1.17.0
func (_c *OnPipeOutputFunc_Execute_Call) RunAndReturn(run func(process.OutputType, []byte, string)) *OnPipeOutputFunc_Execute_Call
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
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 (_m *OnPoolOutputFunc) EXPECT() *OnPoolOutputFunc_Expecter
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
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 (_c *OnPoolOutputFunc_Execute_Call) Return() *OnPoolOutputFunc_Execute_Call
func (*OnPoolOutputFunc_Execute_Call) Run ¶ added in v1.17.0
func (_c *OnPoolOutputFunc_Execute_Call) Run(run func(typ process.OutputType, line []byte, key string)) *OnPoolOutputFunc_Execute_Call
func (*OnPoolOutputFunc_Execute_Call) RunAndReturn ¶ added in v1.17.0
func (_c *OnPoolOutputFunc_Execute_Call) RunAndReturn(run func(process.OutputType, []byte, string)) *OnPoolOutputFunc_Execute_Call
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
Pipe is an autogenerated mock type for the Pipe type
func NewPipe ¶ added in v1.17.0
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
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
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 (_c *PipeBuilder_Command_Call) Return(_a0 *process.PipeCommand) *PipeBuilder_Command_Call
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
func (_c *PipeBuilder_Command_Call) RunAndReturn(run func(string, ...string) *process.PipeCommand) *PipeBuilder_Command_Call
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
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
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 (_c *PipeCommand_As_Call) Return(_a0 process.PipeCommand) *PipeCommand_As_Call
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
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 (_c *PipeCommand_WithSpinner_Call) Return(_a0 process.PipeCommand) *PipeCommand_WithSpinner_Call
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
func (_c *PipeCommand_WithSpinner_Call) RunAndReturn(run func(...string) process.PipeCommand) *PipeCommand_WithSpinner_Call
type Pipe_Command_Call ¶ added in v1.17.0
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 (_c *Pipe_Command_Call) Return(_a0 process.PipeCommand) *Pipe_Command_Call
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
Pipeline is an autogenerated mock type for the Pipeline type
func NewPipeline ¶ added in v1.17.0
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
DisableBuffering provides a mock function with no fields
func (*Pipeline) EXPECT ¶ added in v1.17.0
func (_m *Pipeline) EXPECT() *Pipeline_Expecter
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) Pipe ¶ added in v1.17.0
Pipe provides a mock function with given fields: configurer
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
Timeout provides a mock function with given fields: timeout
func (*Pipeline) WithContext ¶ added in v1.17.0
WithContext provides a mock function with given fields: ctx
type Pipeline_DisableBuffering_Call ¶ added in v1.17.0
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 (_c *Pipeline_DisableBuffering_Call) Return(_a0 process.Pipeline) *Pipeline_DisableBuffering_Call
func (*Pipeline_DisableBuffering_Call) Run ¶ added in v1.17.0
func (_c *Pipeline_DisableBuffering_Call) Run(run func()) *Pipeline_DisableBuffering_Call
func (*Pipeline_DisableBuffering_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Pipeline_DisableBuffering_Call) RunAndReturn(run func() process.Pipeline) *Pipeline_DisableBuffering_Call
type Pipeline_Env_Call ¶ added in v1.17.0
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 (_c *Pipeline_Env_Call) Return(_a0 process.Pipeline) *Pipeline_Env_Call
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
func (_e *Pipeline_Expecter) Quietly() *Pipeline_Quietly_Call
Quietly is a helper method to define mock.On call
func (*Pipeline_Expecter) Run ¶ added in v1.17.0
func (_e *Pipeline_Expecter) Run() *Pipeline_Run_Call
Run is a helper method to define mock.On call
func (*Pipeline_Expecter) Start ¶ added in v1.17.0
func (_e *Pipeline_Expecter) Start() *Pipeline_Start_Call
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
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 (_c *Pipeline_Input_Call) Return(_a0 process.Pipeline) *Pipeline_Input_Call
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
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 (_c *Pipeline_OnOutput_Call) Return(_a0 process.Pipeline) *Pipeline_OnOutput_Call
func (*Pipeline_OnOutput_Call) Run ¶ added in v1.17.0
func (_c *Pipeline_OnOutput_Call) Run(run func(handler process.OnPipeOutputFunc)) *Pipeline_OnOutput_Call
func (*Pipeline_OnOutput_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Pipeline_OnOutput_Call) RunAndReturn(run func(process.OnPipeOutputFunc) process.Pipeline) *Pipeline_OnOutput_Call
type Pipeline_Path_Call ¶ added in v1.17.0
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 (_c *Pipeline_Path_Call) Return(_a0 process.Pipeline) *Pipeline_Path_Call
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
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 (_c *Pipeline_Pipe_Call) Return(_a0 process.Pipeline) *Pipeline_Pipe_Call
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
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 (_c *Pipeline_Quietly_Call) Return(_a0 process.Pipeline) *Pipeline_Quietly_Call
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
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 (_c *Pipeline_Run_Call) Return(_a0 process.Result) *Pipeline_Run_Call
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
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 (_c *Pipeline_Start_Call) Return(_a0 process.RunningPipe, _a1 error) *Pipeline_Start_Call
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
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 (_c *Pipeline_Timeout_Call) Return(_a0 process.Pipeline) *Pipeline_Timeout_Call
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
func (_c *Pipeline_Timeout_Call) RunAndReturn(run func(time.Duration) process.Pipeline) *Pipeline_Timeout_Call
type Pipeline_WithContext_Call ¶ added in v1.17.0
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 (_c *Pipeline_WithContext_Call) Return(_a0 process.Pipeline) *Pipeline_WithContext_Call
func (*Pipeline_WithContext_Call) Run ¶ added in v1.17.0
func (_c *Pipeline_WithContext_Call) Run(run func(ctx context.Context)) *Pipeline_WithContext_Call
func (*Pipeline_WithContext_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Pipeline_WithContext_Call) RunAndReturn(run func(context.Context) process.Pipeline) *Pipeline_WithContext_Call
type Pipeline_WithSpinner_Call ¶ added in v1.17.0
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 (_c *Pipeline_WithSpinner_Call) Return(_a0 process.Pipeline) *Pipeline_WithSpinner_Call
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
func (_c *Pipeline_WithSpinner_Call) RunAndReturn(run func(...string) process.Pipeline) *Pipeline_WithSpinner_Call
type Pool ¶ added in v1.17.0
Pool is an autogenerated mock type for the Pool type
func NewPool ¶ added in v1.17.0
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
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
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 (_c *PoolBuilder_Concurrency_Call) Return(_a0 process.PoolBuilder) *PoolBuilder_Concurrency_Call
func (*PoolBuilder_Concurrency_Call) Run ¶ added in v1.17.0
func (_c *PoolBuilder_Concurrency_Call) Run(run func(n int)) *PoolBuilder_Concurrency_Call
func (*PoolBuilder_Concurrency_Call) RunAndReturn ¶ added in v1.17.0
func (_c *PoolBuilder_Concurrency_Call) RunAndReturn(run func(int) process.PoolBuilder) *PoolBuilder_Concurrency_Call
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
func (_e *PoolBuilder_Expecter) Run() *PoolBuilder_Run_Call
Run is a helper method to define mock.On call
func (*PoolBuilder_Expecter) Start ¶ added in v1.17.0
func (_e *PoolBuilder_Expecter) Start() *PoolBuilder_Start_Call
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
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 (_c *PoolBuilder_OnOutput_Call) Return(_a0 process.PoolBuilder) *PoolBuilder_OnOutput_Call
func (*PoolBuilder_OnOutput_Call) Run ¶ added in v1.17.0
func (_c *PoolBuilder_OnOutput_Call) Run(run func(handler process.OnPoolOutputFunc)) *PoolBuilder_OnOutput_Call
func (*PoolBuilder_OnOutput_Call) RunAndReturn ¶ added in v1.17.0
func (_c *PoolBuilder_OnOutput_Call) RunAndReturn(run func(process.OnPoolOutputFunc) process.PoolBuilder) *PoolBuilder_OnOutput_Call
type PoolBuilder_Pool_Call ¶ added in v1.17.0
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 (_c *PoolBuilder_Pool_Call) Return(_a0 process.PoolBuilder) *PoolBuilder_Pool_Call
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
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 (_c *PoolBuilder_Run_Call) Return(_a0 map[string]process.Result, _a1 error) *PoolBuilder_Run_Call
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
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 (_c *PoolBuilder_Start_Call) Return(_a0 process.RunningPool, _a1 error) *PoolBuilder_Start_Call
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
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 (_c *PoolBuilder_Timeout_Call) Return(_a0 process.PoolBuilder) *PoolBuilder_Timeout_Call
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
func (_c *PoolBuilder_Timeout_Call) RunAndReturn(run func(time.Duration) process.PoolBuilder) *PoolBuilder_Timeout_Call
type PoolBuilder_WithContext_Call ¶ added in v1.17.0
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 (_c *PoolBuilder_WithContext_Call) Return(_a0 process.PoolBuilder) *PoolBuilder_WithContext_Call
func (*PoolBuilder_WithContext_Call) Run ¶ added in v1.17.0
func (_c *PoolBuilder_WithContext_Call) Run(run func(ctx context.Context)) *PoolBuilder_WithContext_Call
func (*PoolBuilder_WithContext_Call) RunAndReturn ¶ added in v1.17.0
func (_c *PoolBuilder_WithContext_Call) RunAndReturn(run func(context.Context) process.PoolBuilder) *PoolBuilder_WithContext_Call
type PoolBuilder_WithSpinner_Call ¶ added in v1.17.0
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 (_c *PoolBuilder_WithSpinner_Call) Return(_a0 process.PoolBuilder) *PoolBuilder_WithSpinner_Call
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
func (_c *PoolBuilder_WithSpinner_Call) RunAndReturn(run func(...string) process.PoolBuilder) *PoolBuilder_WithSpinner_Call
type PoolCommand ¶ added in v1.17.0
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
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 (_c *PoolCommand_As_Call) Return(_a0 process.PoolCommand) *PoolCommand_As_Call
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
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 (_c *PoolCommand_DisableBuffering_Call) Return(_a0 process.PoolCommand) *PoolCommand_DisableBuffering_Call
func (*PoolCommand_DisableBuffering_Call) Run ¶ added in v1.17.0
func (_c *PoolCommand_DisableBuffering_Call) Run(run func()) *PoolCommand_DisableBuffering_Call
func (*PoolCommand_DisableBuffering_Call) RunAndReturn ¶ added in v1.17.0
func (_c *PoolCommand_DisableBuffering_Call) RunAndReturn(run func() process.PoolCommand) *PoolCommand_DisableBuffering_Call
type PoolCommand_Env_Call ¶ added in v1.17.0
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 (_c *PoolCommand_Env_Call) Return(_a0 process.PoolCommand) *PoolCommand_Env_Call
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
func (_e *PoolCommand_Expecter) DisableBuffering() *PoolCommand_DisableBuffering_Call
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
func (_e *PoolCommand_Expecter) Quietly() *PoolCommand_Quietly_Call
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
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 (_c *PoolCommand_Input_Call) Return(_a0 process.PoolCommand) *PoolCommand_Input_Call
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
func (_c *PoolCommand_Input_Call) RunAndReturn(run func(io.Reader) process.PoolCommand) *PoolCommand_Input_Call
type PoolCommand_Path_Call ¶ added in v1.17.0
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 (_c *PoolCommand_Path_Call) Return(_a0 process.PoolCommand) *PoolCommand_Path_Call
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
func (_c *PoolCommand_Path_Call) RunAndReturn(run func(string) process.PoolCommand) *PoolCommand_Path_Call
type PoolCommand_Quietly_Call ¶ added in v1.17.0
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 (_c *PoolCommand_Quietly_Call) Return(_a0 process.PoolCommand) *PoolCommand_Quietly_Call
func (*PoolCommand_Quietly_Call) Run ¶ added in v1.17.0
func (_c *PoolCommand_Quietly_Call) Run(run func()) *PoolCommand_Quietly_Call
func (*PoolCommand_Quietly_Call) RunAndReturn ¶ added in v1.17.0
func (_c *PoolCommand_Quietly_Call) RunAndReturn(run func() process.PoolCommand) *PoolCommand_Quietly_Call
type PoolCommand_Timeout_Call ¶ added in v1.17.0
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 (_c *PoolCommand_Timeout_Call) Return(_a0 process.PoolCommand) *PoolCommand_Timeout_Call
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
func (_c *PoolCommand_Timeout_Call) RunAndReturn(run func(time.Duration) process.PoolCommand) *PoolCommand_Timeout_Call
type PoolCommand_WithContext_Call ¶ added in v1.17.0
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 (_c *PoolCommand_WithContext_Call) Return(_a0 process.PoolCommand) *PoolCommand_WithContext_Call
func (*PoolCommand_WithContext_Call) Run ¶ added in v1.17.0
func (_c *PoolCommand_WithContext_Call) Run(run func(ctx context.Context)) *PoolCommand_WithContext_Call
func (*PoolCommand_WithContext_Call) RunAndReturn ¶ added in v1.17.0
func (_c *PoolCommand_WithContext_Call) RunAndReturn(run func(context.Context) process.PoolCommand) *PoolCommand_WithContext_Call
type Pool_Command_Call ¶ added in v1.17.0
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 (_c *Pool_Command_Call) Return(_a0 process.PoolCommand) *Pool_Command_Call
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 ¶
Process is an autogenerated mock type for the Process type
func NewProcess ¶
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
DisableBuffering provides a mock function with no fields
func (*Process) EXPECT ¶
func (_m *Process) EXPECT() *Process_Expecter
func (*Process) OnOutput ¶
func (_m *Process) OnOutput(handler process.OnOutputFunc) process.Process
OnOutput provides a mock function with given fields: handler
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) WithContext ¶
WithContext provides a mock function with given fields: ctx
type Process_DisableBuffering_Call ¶ added in v1.17.0
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 (_c *Process_DisableBuffering_Call) Return(_a0 process.Process) *Process_DisableBuffering_Call
func (*Process_DisableBuffering_Call) Run ¶ added in v1.17.0
func (_c *Process_DisableBuffering_Call) Run(run func()) *Process_DisableBuffering_Call
func (*Process_DisableBuffering_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Process_DisableBuffering_Call) RunAndReturn(run func() process.Process) *Process_DisableBuffering_Call
type Process_Env_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 (_c *Process_Env_Call) Return(_a0 process.Process) *Process_Env_Call
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 ¶
func (_e *Process_Expecter) TTY() *Process_TTY_Call
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 ¶
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 (_c *Process_Input_Call) Return(_a0 process.Process) *Process_Input_Call
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 ¶
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 (_c *Process_OnOutput_Call) Return(_a0 process.Process) *Process_OnOutput_Call
func (*Process_OnOutput_Call) Run ¶
func (_c *Process_OnOutput_Call) Run(run func(handler process.OnOutputFunc)) *Process_OnOutput_Call
func (*Process_OnOutput_Call) RunAndReturn ¶
func (_c *Process_OnOutput_Call) RunAndReturn(run func(process.OnOutputFunc) process.Process) *Process_OnOutput_Call
type Process_Path_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 (_c *Process_Path_Call) Return(_a0 process.Process) *Process_Path_Call
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
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 (_c *Process_Pipe_Call) Return(_a0 process.Pipeline) *Process_Pipe_Call
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
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 (_c *Process_Pool_Call) Return(_a0 process.PoolBuilder) *Process_Pool_Call
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 ¶
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 (_c *Process_Quietly_Call) Return(_a0 process.Process) *Process_Quietly_Call
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 ¶
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 (_c *Process_Run_Call) Return(_a0 process.Result) *Process_Run_Call
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 ¶
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 (_c *Process_Start_Call) Return(_a0 process.Running, _a1 error) *Process_Start_Call
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 ¶
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 (_c *Process_TTY_Call) Return(_a0 process.Process) *Process_TTY_Call
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 ¶
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 (_c *Process_Timeout_Call) Return(_a0 process.Process) *Process_Timeout_Call
func (*Process_Timeout_Call) Run ¶
func (_c *Process_Timeout_Call) Run(run func(timeout time.Duration)) *Process_Timeout_Call
func (*Process_Timeout_Call) RunAndReturn ¶
func (_c *Process_Timeout_Call) RunAndReturn(run func(time.Duration) process.Process) *Process_Timeout_Call
type Process_WithContext_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 (_c *Process_WithContext_Call) Return(_a0 process.Process) *Process_WithContext_Call
func (*Process_WithContext_Call) Run ¶
func (_c *Process_WithContext_Call) Run(run func(ctx context.Context)) *Process_WithContext_Call
func (*Process_WithContext_Call) RunAndReturn ¶
func (_c *Process_WithContext_Call) RunAndReturn(run func(context.Context) process.Process) *Process_WithContext_Call
type Process_WithSpinner_Call ¶ added in v1.17.0
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 (_c *Process_WithSpinner_Call) Return(_a0 process.Process) *Process_WithSpinner_Call
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
func (_c *Process_WithSpinner_Call) RunAndReturn(run func(...string) process.Process) *Process_WithSpinner_Call
type Result ¶
Result is an autogenerated mock type for the Result type
func NewResult ¶
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) EXPECT ¶
func (_m *Result) EXPECT() *Result_Expecter
func (*Result) ErrorOutput ¶
ErrorOutput provides a mock function with no fields
func (*Result) SeeInErrorOutput ¶
SeeInErrorOutput provides a mock function with given fields: needle
func (*Result) SeeInOutput ¶
SeeInOutput provides a mock function with given fields: needle
func (*Result) Successful ¶
Successful provides a mock function with no fields
type Result_Command_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 (_c *Result_Command_Call) Return(_a0 string) *Result_Command_Call
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 ¶
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 (_c *Result_ErrorOutput_Call) Return(_a0 string) *Result_ErrorOutput_Call
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
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 ¶
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 (_c *Result_ExitCode_Call) Return(_a0 int) *Result_ExitCode_Call
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 ¶
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 ¶
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 ¶
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 (_c *Result_SeeInErrorOutput_Call) Return(_a0 bool) *Result_SeeInErrorOutput_Call
func (*Result_SeeInErrorOutput_Call) Run ¶
func (_c *Result_SeeInErrorOutput_Call) Run(run func(needle string)) *Result_SeeInErrorOutput_Call
func (*Result_SeeInErrorOutput_Call) RunAndReturn ¶
func (_c *Result_SeeInErrorOutput_Call) RunAndReturn(run func(string) bool) *Result_SeeInErrorOutput_Call
type Result_SeeInOutput_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 (_c *Result_SeeInOutput_Call) Return(_a0 bool) *Result_SeeInOutput_Call
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 ¶
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 (_c *Result_Successful_Call) Return(_a0 bool) *Result_Successful_Call
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 ¶
Running is an autogenerated mock type for the Running type
func NewRunning ¶
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 ¶
ErrorOutput provides a mock function with no fields
type RunningPipe ¶ added in v1.17.0
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
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
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
func (_e *RunningPipe_Expecter) Done() *RunningPipe_Done_Call
Done is a helper method to define mock.On call
func (*RunningPipe_Expecter) PIDs ¶ added in v1.17.0
func (_e *RunningPipe_Expecter) PIDs() *RunningPipe_PIDs_Call
PIDs is a helper method to define mock.On call
func (*RunningPipe_Expecter) Running ¶ added in v1.17.0
func (_e *RunningPipe_Expecter) Running() *RunningPipe_Running_Call
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
func (_e *RunningPipe_Expecter) Wait() *RunningPipe_Wait_Call
Wait is a helper method to define mock.On call
type RunningPipe_PIDs_Call ¶ added in v1.17.0
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 (_c *RunningPipe_PIDs_Call) Return(_a0 map[string]int) *RunningPipe_PIDs_Call
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
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 (_c *RunningPipe_Running_Call) Return(_a0 bool) *RunningPipe_Running_Call
func (*RunningPipe_Running_Call) Run ¶ added in v1.17.0
func (_c *RunningPipe_Running_Call) Run(run func()) *RunningPipe_Running_Call
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
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 (_c *RunningPipe_Signal_Call) Return(_a0 error) *RunningPipe_Signal_Call
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
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 (_c *RunningPipe_Stop_Call) Return(_a0 error) *RunningPipe_Stop_Call
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
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 (_c *RunningPipe_Wait_Call) Return(_a0 process.Result) *RunningPipe_Wait_Call
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
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
type RunningPool_Done_Call ¶ added in v1.17.0
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
func (_e *RunningPool_Expecter) Done() *RunningPool_Done_Call
Done is a helper method to define mock.On call
func (*RunningPool_Expecter) PIDs ¶ added in v1.17.0
func (_e *RunningPool_Expecter) PIDs() *RunningPool_PIDs_Call
PIDs is a helper method to define mock.On call
func (*RunningPool_Expecter) Running ¶ added in v1.17.0
func (_e *RunningPool_Expecter) Running() *RunningPool_Running_Call
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
func (_e *RunningPool_Expecter) Wait() *RunningPool_Wait_Call
Wait is a helper method to define mock.On call
type RunningPool_PIDs_Call ¶ added in v1.17.0
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 (_c *RunningPool_PIDs_Call) Return(_a0 map[string]int) *RunningPool_PIDs_Call
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
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 (_c *RunningPool_Running_Call) Return(_a0 bool) *RunningPool_Running_Call
func (*RunningPool_Running_Call) Run ¶ added in v1.17.0
func (_c *RunningPool_Running_Call) Run(run func()) *RunningPool_Running_Call
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
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 (_c *RunningPool_Signal_Call) Return(_a0 error) *RunningPool_Signal_Call
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
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 (_c *RunningPool_Stop_Call) Return(_a0 error) *RunningPool_Stop_Call
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
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 (_c *RunningPool_Wait_Call) Return(_a0 map[string]process.Result) *RunningPool_Wait_Call
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
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 ¶
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 (_c *Running_ErrorOutput_Call) Return(_a0 string) *Running_ErrorOutput_Call
func (*Running_ErrorOutput_Call) Run ¶
func (_c *Running_ErrorOutput_Call) Run(run func()) *Running_ErrorOutput_Call
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 ¶
func (_e *Running_Expecter) PID() *Running_PID_Call
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 ¶
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 (_c *Running_Output_Call) Return(_a0 string) *Running_Output_Call
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 ¶
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 ¶
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 (_c *Running_Running_Call) Return(_a0 bool) *Running_Running_Call
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 ¶
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 (_c *Running_Signal_Call) Return(_a0 error) *Running_Signal_Call
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 ¶
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 ¶
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 (_c *Running_Wait_Call) Return(_a0 process.Result) *Running_Wait_Call
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
Step is an autogenerated mock type for the Step type
func NewStep ¶ added in v1.17.0
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
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