Documentation ¶
Index ¶
- type Shell
- func (_m *Shell) Copy(src string, dest string) error
- func (_m *Shell) Exec(ctx context.Context, name string, args ...string) error
- func (_m *Shell) ExecInOut(ctx context.Context, env map[string]string, stdin io.Reader, name string, ...) ([]byte, []byte, error)
- func (_m *Shell) Move(src string, dest string) error
- func (_m *Shell) Remove(fpth string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Shell ¶
Shell is an autogenerated mock type for the Shell type
func NewShell ¶
func NewShell(t mockConstructorTestingTNewShell) *Shell
NewShell creates a new instance of Shell. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Shell) ExecInOut ¶
func (_m *Shell) ExecInOut(ctx context.Context, env map[string]string, stdin io.Reader, name string, args ...string) ([]byte, []byte, error)
ExecInOut provides a mock function with given fields: ctx, env, stdin, name, args
Click to show internal directories.
Click to hide internal directories.