Documentation ¶
Overview ¶
Package exec is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type Cmd struct {
// contains filtered or unexported fields
}
Cmd runs external commands, it wraps the exec.Command function from the stdlib so that running external commands can be unit tested.
func (*Cmd) InteractiveRun ¶
InteractiveRun runs the input command that starts a child process.
type CmdOption ¶
CmdOption is a type alias to configure a command.
type MockcmdRunner ¶
type MockcmdRunner struct {
// contains filtered or unexported fields
}
MockcmdRunner is a mock of cmdRunner interface.
func NewMockcmdRunner ¶
func NewMockcmdRunner(ctrl *gomock.Controller) *MockcmdRunner
NewMockcmdRunner creates a new mock instance.
func (*MockcmdRunner) EXPECT ¶
func (m *MockcmdRunner) EXPECT() *MockcmdRunnerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockcmdRunnerMockRecorder ¶
type MockcmdRunnerMockRecorder struct {
// contains filtered or unexported fields
}
MockcmdRunnerMockRecorder is the mock recorder for MockcmdRunner.
func (*MockcmdRunnerMockRecorder) Run ¶
func (mr *MockcmdRunnerMockRecorder) Run() *gomock.Call
Run indicates an expected call of Run.
Click to show internal directories.
Click to hide internal directories.