Documentation ¶
Index ¶
- type Cmd
- func (_m *Cmd) CombinedOutput() ([]byte, error)
- func (_m *Cmd) Output() ([]byte, error)
- func (_m *Cmd) Run() error
- func (_m *Cmd) SetDir(dir string)
- func (_m *Cmd) SetEnv(env []string)
- func (_m *Cmd) SetStderr(out io.Writer)
- func (_m *Cmd) SetStdin(in io.Reader)
- func (_m *Cmd) SetStdout(out io.Writer)
- func (_m *Cmd) Start() error
- func (_m *Cmd) StderrPipe() (io.ReadCloser, error)
- func (_m *Cmd) StdoutPipe() (io.ReadCloser, error)
- func (_m *Cmd) Stop()
- func (_m *Cmd) Wait() error
- type ExitError
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
Cmd is an autogenerated mock type for the Cmd type
func NewCmd ¶
NewCmd creates a new instance of Cmd. 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 (*Cmd) CombinedOutput ¶
CombinedOutput provides a mock function with given fields:
func (*Cmd) StderrPipe ¶
func (_m *Cmd) StderrPipe() (io.ReadCloser, error)
StderrPipe provides a mock function with given fields:
func (*Cmd) StdoutPipe ¶
func (_m *Cmd) StdoutPipe() (io.ReadCloser, error)
StdoutPipe provides a mock function with given fields:
type ExitError ¶
ExitError is an autogenerated mock type for the ExitError type
func NewExitError ¶
NewExitError creates a new instance of ExitError. 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 (*ExitError) ExitStatus ¶
ExitStatus provides a mock function with given fields:
type Interface ¶
Interface is an autogenerated mock type for the Interface type
func NewInterface ¶
NewInterface creates a new instance of Interface. 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 (*Interface) CommandContext ¶
CommandContext provides a mock function with given fields: ctx, cmd, args