Versions in this module Expand all Collapse all v0 v0.3.1 Aug 21, 2021 Changes in this version + func InitFakeCmd(fake *FakeCmd, cmd string, args ...string) exec.Cmd + type FakeAction func() ([]byte, []byte, error) + type FakeCmd struct + Argv []string + CombinedOutputCalls int + CombinedOutputLog [][]string + CombinedOutputScript []FakeAction + Dirs []string + DisableScripts bool + Env []string + OutputCalls int + OutputLog [][]string + OutputScript []FakeAction + RunCalls int + RunLog [][]string + RunScript []FakeAction + StartResponse error + Stderr io.Writer + StderrPipeResponse FakeStdIOPipeResponse + Stdin io.Reader + Stdout io.Writer + StdoutPipeResponse FakeStdIOPipeResponse + WaitResponse error + func (fake *FakeCmd) CombinedOutput() ([]byte, error) + func (fake *FakeCmd) Output() ([]byte, error) + func (fake *FakeCmd) Run() error + func (fake *FakeCmd) SetDir(dir string) + func (fake *FakeCmd) SetEnv(env []string) + func (fake *FakeCmd) SetStderr(out io.Writer) + func (fake *FakeCmd) SetStdin(in io.Reader) + func (fake *FakeCmd) SetStdout(out io.Writer) + func (fake *FakeCmd) Start() error + func (fake *FakeCmd) StderrPipe() (io.ReadCloser, error) + func (fake *FakeCmd) StdoutPipe() (io.ReadCloser, error) + func (fake *FakeCmd) Stop() + func (fake *FakeCmd) Wait() error + type FakeCommandAction func(cmd string, args ...string) exec.Cmd + type FakeExec struct + CommandCalls int + CommandScript []FakeCommandAction + DisableScripts bool + ExactOrder bool + LookPathFunc func(string) (string, error) + func (fake *FakeExec) Command(cmd string, args ...string) exec.Cmd + func (fake *FakeExec) CommandContext(ctx context.Context, cmd string, args ...string) exec.Cmd + func (fake *FakeExec) LookPath(file string) (string, error) + type FakeExitError struct + Status int + func (fake FakeExitError) Error() string + func (fake FakeExitError) ExitStatus() int + func (fake FakeExitError) Exited() bool + func (fake FakeExitError) String() string + type FakeStdIOPipeResponse struct + Error error + ReadCloser io.ReadCloser