Documentation ¶
Index ¶
- func RunCommandExitCode(t *testing.T, newCommand func(string) *appcmd.Command, expectedExitCode int, ...)
- func RunCommandExitCodeStdout(t *testing.T, newCommand func(string) *appcmd.Command, expectedExitCode int, ...)
- func RunCommandSuccess(t *testing.T, newCommand func(string) *appcmd.Command, env map[string]string, ...)
- func RunCommandSuccessStdout(t *testing.T, newCommand func(string) *appcmd.Command, expectedStdout string, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunCommandExitCode ¶
func RunCommandExitCode( t *testing.T, newCommand func(string) *appcmd.Command, expectedExitCode int, env map[string]string, stdin io.Reader, stdout io.Writer, args ...string, )
RunCommandExitCode runs the command and compares the exit code.
func RunCommandExitCodeStdout ¶
func RunCommandExitCodeStdout( t *testing.T, newCommand func(string) *appcmd.Command, expectedExitCode int, expectedStdout string, env map[string]string, stdin io.Reader, args ...string, )
RunCommandExitCodeStdout runs the command and compares the exit code and stdout output.
func RunCommandSuccess ¶
func RunCommandSuccess( t *testing.T, newCommand func(string) *appcmd.Command, env map[string]string, stdin io.Reader, stdout io.Writer, args ...string, )
RunCommandSuccess runs the command and makes sure it was successful.
func RunCommandSuccessStdout ¶
func RunCommandSuccessStdout( t *testing.T, newCommand func(string) *appcmd.Command, expectedStdout string, env map[string]string, stdin io.Reader, args ...string, )
RunCommandSuccessStdout runs the command and makes sure it was successful, and compares the stdout output.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.