Documentation ¶
Overview ¶
Package mock_execwrapper is a generated GoMock package.
Index ¶
- type MockCmd
- func (m *MockCmd) AppendExtraFiles(arg0 ...*os.File)
- func (m *MockCmd) Args() []string
- func (m *MockCmd) CombinedOutput() ([]byte, error)
- func (m *MockCmd) EXPECT() *MockCmdMockRecorder
- func (m *MockCmd) KillProcess() error
- func (m *MockCmd) Output() ([]byte, error)
- func (m *MockCmd) Run() error
- func (m *MockCmd) SetIOStreams(arg0 io.Reader, arg1, arg2 io.Writer)
- func (m *MockCmd) Start() error
- func (m *MockCmd) Wait() error
- type MockCmdMockRecorder
- func (mr *MockCmdMockRecorder) AppendExtraFiles(arg0 ...interface{}) *gomock.Call
- func (mr *MockCmdMockRecorder) Args() *gomock.Call
- func (mr *MockCmdMockRecorder) CombinedOutput() *gomock.Call
- func (mr *MockCmdMockRecorder) KillProcess() *gomock.Call
- func (mr *MockCmdMockRecorder) Output() *gomock.Call
- func (mr *MockCmdMockRecorder) Run() *gomock.Call
- func (mr *MockCmdMockRecorder) SetIOStreams(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockCmdMockRecorder) Start() *gomock.Call
- func (mr *MockCmdMockRecorder) Wait() *gomock.Call
- type MockExec
- func (m *MockExec) CommandContext(arg0 context.Context, arg1 string, arg2 ...string) execwrapper.Cmd
- func (m *MockExec) ConvertToExitError(arg0 error) (*exec.ExitError, bool)
- func (m *MockExec) EXPECT() *MockExecMockRecorder
- func (m *MockExec) GetExitCode(arg0 *exec.ExitError) int
- func (m *MockExec) NewExecContextWithTimeout(arg0 context.Context, arg1 time.Duration) (context.Context, context.CancelFunc)
- type MockExecMockRecorder
- func (mr *MockExecMockRecorder) CommandContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockExecMockRecorder) ConvertToExitError(arg0 interface{}) *gomock.Call
- func (mr *MockExecMockRecorder) GetExitCode(arg0 interface{}) *gomock.Call
- func (mr *MockExecMockRecorder) NewExecContextWithTimeout(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCmd ¶
type MockCmd struct {
// contains filtered or unexported fields
}
MockCmd is a mock of Cmd interface.
func NewMockCmd ¶
func NewMockCmd(ctrl *gomock.Controller) *MockCmd
NewMockCmd creates a new mock instance.
func (*MockCmd) AppendExtraFiles ¶
AppendExtraFiles mocks base method.
func (*MockCmd) CombinedOutput ¶
CombinedOutput mocks base method.
func (*MockCmd) EXPECT ¶
func (m *MockCmd) EXPECT() *MockCmdMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCmd) SetIOStreams ¶
SetIOStreams mocks base method.
type MockCmdMockRecorder ¶
type MockCmdMockRecorder struct {
// contains filtered or unexported fields
}
MockCmdMockRecorder is the mock recorder for MockCmd.
func (*MockCmdMockRecorder) AppendExtraFiles ¶
func (mr *MockCmdMockRecorder) AppendExtraFiles(arg0 ...interface{}) *gomock.Call
AppendExtraFiles indicates an expected call of AppendExtraFiles.
func (*MockCmdMockRecorder) Args ¶
func (mr *MockCmdMockRecorder) Args() *gomock.Call
Args indicates an expected call of Args.
func (*MockCmdMockRecorder) CombinedOutput ¶
func (mr *MockCmdMockRecorder) CombinedOutput() *gomock.Call
CombinedOutput indicates an expected call of CombinedOutput.
func (*MockCmdMockRecorder) KillProcess ¶
func (mr *MockCmdMockRecorder) KillProcess() *gomock.Call
KillProcess indicates an expected call of KillProcess.
func (*MockCmdMockRecorder) Output ¶
func (mr *MockCmdMockRecorder) Output() *gomock.Call
Output indicates an expected call of Output.
func (*MockCmdMockRecorder) Run ¶
func (mr *MockCmdMockRecorder) Run() *gomock.Call
Run indicates an expected call of Run.
func (*MockCmdMockRecorder) SetIOStreams ¶
func (mr *MockCmdMockRecorder) SetIOStreams(arg0, arg1, arg2 interface{}) *gomock.Call
SetIOStreams indicates an expected call of SetIOStreams.
func (*MockCmdMockRecorder) Start ¶
func (mr *MockCmdMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockCmdMockRecorder) Wait ¶
func (mr *MockCmdMockRecorder) Wait() *gomock.Call
Wait indicates an expected call of Wait.
type MockExec ¶
type MockExec struct {
// contains filtered or unexported fields
}
MockExec is a mock of Exec interface.
func NewMockExec ¶
func NewMockExec(ctrl *gomock.Controller) *MockExec
NewMockExec creates a new mock instance.
func (*MockExec) CommandContext ¶
func (m *MockExec) CommandContext(arg0 context.Context, arg1 string, arg2 ...string) execwrapper.Cmd
CommandContext mocks base method.
func (*MockExec) ConvertToExitError ¶
ConvertToExitError mocks base method.
func (*MockExec) EXPECT ¶
func (m *MockExec) EXPECT() *MockExecMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExec) GetExitCode ¶
GetExitCode mocks base method.
type MockExecMockRecorder ¶
type MockExecMockRecorder struct {
// contains filtered or unexported fields
}
MockExecMockRecorder is the mock recorder for MockExec.
func (*MockExecMockRecorder) CommandContext ¶
func (mr *MockExecMockRecorder) CommandContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
CommandContext indicates an expected call of CommandContext.
func (*MockExecMockRecorder) ConvertToExitError ¶
func (mr *MockExecMockRecorder) ConvertToExitError(arg0 interface{}) *gomock.Call
ConvertToExitError indicates an expected call of ConvertToExitError.
func (*MockExecMockRecorder) GetExitCode ¶
func (mr *MockExecMockRecorder) GetExitCode(arg0 interface{}) *gomock.Call
GetExitCode indicates an expected call of GetExitCode.
func (*MockExecMockRecorder) NewExecContextWithTimeout ¶
func (mr *MockExecMockRecorder) NewExecContextWithTimeout(arg0, arg1 interface{}) *gomock.Call
NewExecContextWithTimeout indicates an expected call of NewExecContextWithTimeout.