Documentation
¶
Overview ¶
Package fakeexec is used to mock calls to exec.Command. The following function must be included in a *_test.go file.
func TestExecCommandHelper(t *testing.T) { if os.Getenv("GO_WANT_HELPER_PROCESS") != "1" { return } fmt.Print(os.Getenv("STDOUT")) i, _ := strconv.Atoi(os.Getenv("EXIT_STATUS")) os.Exit(i) }
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type E ¶
type E struct {
// contains filtered or unexported fields
}
E represents a set of expected executions of a command
func (*E) ExpectFunc ¶
ExpectFunc adds a new expectation, command and args can be checked for correctness by the supplied function
Click to show internal directories.
Click to hide internal directories.