fake_command_runner

package
Version: v0.0.0-...-68efac8 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2014 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandSpec

type CommandSpec struct {
	Path  string
	Args  []string
	Env   []string
	Stdin string
	Dir   string
}

func (CommandSpec) Matches

func (s CommandSpec) Matches(cmd *exec.Cmd) bool

type FakeCommandRunner

type FakeCommandRunner struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

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) Kill

func (r *FakeCommandRunner) Kill(cmd *exec.Cmd) error

func (*FakeCommandRunner) KilledCommands

func (r *FakeCommandRunner) KilledCommands() []*exec.Cmd

func (*FakeCommandRunner) Run

func (r *FakeCommandRunner) Run(cmd *exec.Cmd) error

func (*FakeCommandRunner) Signal

func (r *FakeCommandRunner) Signal(cmd *exec.Cmd, signal os.Signal) error

func (*FakeCommandRunner) SignalledCommands

func (r *FakeCommandRunner) SignalledCommands() map[*exec.Cmd]os.Signal

func (*FakeCommandRunner) Start

func (r *FakeCommandRunner) Start(cmd *exec.Cmd) error

func (*FakeCommandRunner) StartedCommands

func (r *FakeCommandRunner) StartedCommands() []*exec.Cmd

func (*FakeCommandRunner) Wait

func (r *FakeCommandRunner) Wait(cmd *exec.Cmd) error

func (*FakeCommandRunner) WhenRunning

func (r *FakeCommandRunner) WhenRunning(spec CommandSpec, callback func(*exec.Cmd) error)

func (*FakeCommandRunner) WhenWaitingFor

func (r *FakeCommandRunner) WhenWaitingFor(spec CommandSpec, callback func(*exec.Cmd) error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL