Documentation ¶
Index ¶
- func OpenFileMock(name string) (io.ReadCloser, error)
- type ExecCall
- type ExecMockRunner
- type FilesMock
- func (f FilesMock) Copy(src, dst string) (int64, error)
- func (f FilesMock) FileExists(filename string) (bool, error)
- func (f FilesMock) FileRead(path string) ([]byte, error)
- func (f FilesMock) FileWrite(path string, content []byte, perm os.FileMode) error
- func (f FilesMock) MkdirAll(path string, perm os.FileMode) error
- type ShellMockRunner
- type StepOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenFileMock ¶
func OpenFileMock(name string) (io.ReadCloser, error)
Types ¶
type ExecMockRunner ¶
type ExecMockRunner struct { Dir []string Env []string Calls []ExecCall StdoutReturn map[string]string ShouldFailOnCommand map[string]error // contains filtered or unexported fields }
func (*ExecMockRunner) RunExecutable ¶
func (m *ExecMockRunner) RunExecutable(e string, p ...string) error
func (*ExecMockRunner) SetDir ¶
func (m *ExecMockRunner) SetDir(d string)
func (*ExecMockRunner) SetEnv ¶
func (m *ExecMockRunner) SetEnv(e []string)
func (*ExecMockRunner) Stderr ¶
func (m *ExecMockRunner) Stderr(err io.Writer)
func (*ExecMockRunner) Stdout ¶
func (m *ExecMockRunner) Stdout(out io.Writer)
type FilesMock ¶ added in v1.19.0
type FilesMock struct {
Files []string
}
FilesMock ...
func (FilesMock) FileExists ¶ added in v1.19.0
FileExists ...
type ShellMockRunner ¶
type ShellMockRunner struct { Dir string Env []string Calls []string Shell []string StdoutReturn map[string]string ShouldFailOnCommand map[string]error // contains filtered or unexported fields }
func (*ShellMockRunner) AddToEnv ¶
func (m *ShellMockRunner) AddToEnv(e []string)
func (*ShellMockRunner) SetDir ¶
func (m *ShellMockRunner) SetDir(d string)
func (*ShellMockRunner) SetEnv ¶ added in v1.16.0
func (m *ShellMockRunner) SetEnv(e []string)
func (*ShellMockRunner) Stderr ¶
func (m *ShellMockRunner) Stderr(err io.Writer)
func (*ShellMockRunner) Stdout ¶
func (m *ShellMockRunner) Stdout(out io.Writer)
type StepOptions ¶
type StepOptions struct {
TestParam string `json:"testParam,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.