Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RunCommandCall ¶ added in v0.4.0
func (*RunCommandCall) String ¶ added in v0.4.0
func (c *RunCommandCall) String() string
type RunShellCommandCall ¶ added in v0.4.0
type RunShellCommandCall struct {
CommandLine string
}
func (*RunShellCommandCall) String ¶ added in v0.4.0
func (c *RunShellCommandCall) String() string
type Runner ¶ added in v0.4.0
type Runner interface { RunCommand(name string, args ...string) (stdout string, stderr string, err error) RunShellCommand(commandLine string) (stdout string, stderr string, err error) }
Runner can run external commands and shell commands
type SpyRunner ¶ added in v0.4.0
type SpyRunner struct { Stdout string Stderr string Error error RunCommandCalls []*RunCommandCall RunShellCommandCalls []*RunShellCommandCall }
SpyRunner is a cmd.Runner for testing purposes
func (*SpyRunner) RunCommand ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.