Documentation ¶
Index ¶
- type ExecInfo
- type ExecInfoList
- type ExecProviderFunction
- type MockExecutor
- func (e *MockExecutor) RunCommand(cmd string, args ...string) *command.ExecResult
- func (e *MockExecutor) RunCommandWithRetries(retries int, okExitCodes []int, cmd string, args ...string) *command.ExecResult
- func (e *MockExecutor) RunCommandWithRetriesAndDelay(retries int, retryWaitMilliseconds int, okExitCodes []int, cmd string, ...) *command.ExecResult
- func (e *MockExecutor) ValidateCallNum()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecInfo ¶
type ExecInfo struct { Expected string Returned *command.ExecResult }
type ExecInfoList ¶
type ExecInfoList []ExecInfo
type ExecProviderFunction ¶
type MockExecutor ¶
type MockExecutor struct { CallNum int // contains filtered or unexported fields }
func NewMockExecutorFromInfos ¶
func NewMockExecutorFromInfos(t *testing.T, execInfos ...*ExecInfo) *MockExecutor
func NewMockExecutorFromSlices ¶
func NewMockExecutorFromSlices(t *testing.T, expected []string, returned []*command.ExecResult) (*MockExecutor, error)
func (*MockExecutor) RunCommand ¶
func (e *MockExecutor) RunCommand(cmd string, args ...string) *command.ExecResult
func (*MockExecutor) RunCommandWithRetries ¶
func (e *MockExecutor) RunCommandWithRetries(retries int, okExitCodes []int, cmd string, args ...string) *command.ExecResult
func (*MockExecutor) RunCommandWithRetriesAndDelay ¶
func (e *MockExecutor) RunCommandWithRetriesAndDelay(retries int, retryWaitMilliseconds int, okExitCodes []int, cmd string, args ...string) *command.ExecResult
func (*MockExecutor) ValidateCallNum ¶
func (e *MockExecutor) ValidateCallNum()
Click to show internal directories.
Click to hide internal directories.