Documentation ¶
Index ¶
- type CommandSpec
- type FakeCommandRunner
- func (r *FakeCommandRunner) Background(cmd *exec.Cmd) error
- func (r *FakeCommandRunner) BackgroundedCommands() []*exec.Cmd
- func (r *FakeCommandRunner) ExecutedCommands() []*exec.Cmd
- func (r *FakeCommandRunner) Kill(cmd *exec.Cmd) error
- func (r *FakeCommandRunner) KilledCommands() []*exec.Cmd
- func (r *FakeCommandRunner) Run(cmd *exec.Cmd) error
- func (r *FakeCommandRunner) RunInjectsProcessToCmd(process *os.Process)
- func (r *FakeCommandRunner) Signal(cmd *exec.Cmd, signal os.Signal) error
- func (r *FakeCommandRunner) SignalledCommands() map[*exec.Cmd]os.Signal
- func (r *FakeCommandRunner) Start(cmd *exec.Cmd) error
- func (r *FakeCommandRunner) StartedCommands() []*exec.Cmd
- func (r *FakeCommandRunner) Wait(cmd *exec.Cmd) error
- func (r *FakeCommandRunner) WaitedCommands() []*exec.Cmd
- func (r *FakeCommandRunner) WhenRunning(spec CommandSpec, callback func(*exec.Cmd) error)
- func (r *FakeCommandRunner) WhenStarting(spec CommandSpec, callback func(*exec.Cmd) error)
- func (r *FakeCommandRunner) WhenWaitingFor(spec CommandSpec, callback func(*exec.Cmd) error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandSpec ¶
type FakeCommandRunner ¶
func New ¶
func New() *FakeCommandRunner
func (*FakeCommandRunner) Background ¶
func (r *FakeCommandRunner) Background(cmd *exec.Cmd) error
func (*FakeCommandRunner) BackgroundedCommands ¶
func (r *FakeCommandRunner) BackgroundedCommands() []*exec.Cmd
func (*FakeCommandRunner) ExecutedCommands ¶
func (r *FakeCommandRunner) ExecutedCommands() []*exec.Cmd
func (*FakeCommandRunner) KilledCommands ¶
func (r *FakeCommandRunner) KilledCommands() []*exec.Cmd
func (*FakeCommandRunner) RunInjectsProcessToCmd ¶
func (r *FakeCommandRunner) RunInjectsProcessToCmd(process *os.Process)
func (*FakeCommandRunner) SignalledCommands ¶
func (r *FakeCommandRunner) SignalledCommands() map[*exec.Cmd]os.Signal
func (*FakeCommandRunner) StartedCommands ¶
func (r *FakeCommandRunner) StartedCommands() []*exec.Cmd
func (*FakeCommandRunner) WaitedCommands ¶
func (r *FakeCommandRunner) WaitedCommands() []*exec.Cmd
func (*FakeCommandRunner) WhenRunning ¶
func (r *FakeCommandRunner) WhenRunning(spec CommandSpec, callback func(*exec.Cmd) error)
func (*FakeCommandRunner) WhenStarting ¶
func (r *FakeCommandRunner) WhenStarting(spec CommandSpec, callback func(*exec.Cmd) error)
func (*FakeCommandRunner) WhenWaitingFor ¶
func (r *FakeCommandRunner) WhenWaitingFor(spec CommandSpec, callback func(*exec.Cmd) error)
Click to show internal directories.
Click to hide internal directories.