Documentation ¶
Overview ¶
Package cmdrunnermock is a generated GoMock package.
Index ¶
- type MockCommandRunner
- func (m *MockCommandRunner) CombinedOutput(arg0 string, arg1 ...string) ([]byte, error)
- func (m *MockCommandRunner) Command(arg0 string, arg1 ...string) *exec.Cmd
- func (m *MockCommandRunner) CommandContext(arg0 context.Context, arg1 string, arg2 ...string) *exec.Cmd
- func (m *MockCommandRunner) EXPECT() *MockCommandRunnerMockRecorder
- type MockCommandRunnerMockRecorder
- func (mr *MockCommandRunnerMockRecorder) CombinedOutput(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockCommandRunnerMockRecorder) Command(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockCommandRunnerMockRecorder) CommandContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCommandRunner ¶
type MockCommandRunner struct {
// contains filtered or unexported fields
}
MockCommandRunner is a mock of CommandRunner interface.
func NewMockCommandRunner ¶
func NewMockCommandRunner(ctrl *gomock.Controller) *MockCommandRunner
NewMockCommandRunner creates a new mock instance.
func (*MockCommandRunner) CombinedOutput ¶
func (m *MockCommandRunner) CombinedOutput(arg0 string, arg1 ...string) ([]byte, error)
CombinedOutput mocks base method.
func (*MockCommandRunner) Command ¶ added in v1.20.7
func (m *MockCommandRunner) Command(arg0 string, arg1 ...string) *exec.Cmd
Command mocks base method.
func (*MockCommandRunner) CommandContext ¶ added in v1.29.0
func (m *MockCommandRunner) CommandContext(arg0 context.Context, arg1 string, arg2 ...string) *exec.Cmd
CommandContext mocks base method.
func (*MockCommandRunner) EXPECT ¶
func (m *MockCommandRunner) EXPECT() *MockCommandRunnerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCommandRunnerMockRecorder ¶
type MockCommandRunnerMockRecorder struct {
// contains filtered or unexported fields
}
MockCommandRunnerMockRecorder is the mock recorder for MockCommandRunner.
func (*MockCommandRunnerMockRecorder) CombinedOutput ¶
func (mr *MockCommandRunnerMockRecorder) CombinedOutput(arg0 interface{}, arg1 ...interface{}) *gomock.Call
CombinedOutput indicates an expected call of CombinedOutput.
func (*MockCommandRunnerMockRecorder) Command ¶ added in v1.20.7
func (mr *MockCommandRunnerMockRecorder) Command(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Command indicates an expected call of Command.
func (*MockCommandRunnerMockRecorder) CommandContext ¶ added in v1.29.0
func (mr *MockCommandRunnerMockRecorder) CommandContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
CommandContext indicates an expected call of CommandContext.
Click to show internal directories.
Click to hide internal directories.