Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecWrap ¶
type ExecWrap interface { RunCommandDirect(command []string) error RunCommandStdoutToFile(outfileName string, command []string) error RunSyscallExec(args []string) error }
ExecWrap wraps exec calls
func ExecWrapInstance ¶
func ExecWrapInstance() ExecWrap
ExecWrapInstance gets the execution wrapper interface
type OsWrap ¶
type OsWrap interface { Command(name string, arg ...string) *exec.Cmd Exec(argv0 string, argv []string, envv []string) (err error) Create(name string) (*os.File, error) LookPath(name string) (string, error) Environ() []string Remove(name string) error Stat(name string) (os.FileInfo, error) ReadFile(filename string) ([]byte, error) WriteFile(filename string, data []byte, perm os.FileMode) error }
OsWrap wraps OS filesystem commands for mocking
func OsWrapInstance ¶
func OsWrapInstance() OsWrap
OsWrapInstance gets an instance of the os wrapper
Click to show internal directories.
Click to hide internal directories.