Documentation ¶
Index ¶
- func RunCommandExitCode(t *testing.T, newCommand func(use string) *appcmd.Command, ...)
- func RunCommandExitCodeStderr(t *testing.T, newCommand func(use string) *appcmd.Command, ...)
- func RunCommandExitCodeStdout(t *testing.T, newCommand func(use string) *appcmd.Command, ...)
- func RunCommandExitCodeStdoutStderr(t *testing.T, newCommand func(use string) *appcmd.Command, ...)
- func RunCommandSuccess(t *testing.T, newCommand func(use string) *appcmd.Command, ...)
- func RunCommandSuccessStdout(t *testing.T, newCommand func(use string) *appcmd.Command, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunCommandExitCode ¶
func RunCommandExitCode( t *testing.T, newCommand func(use string) *appcmd.Command, expectedExitCode int, newEnv func(use string) map[string]string, stdin io.Reader, stdout io.Writer, stderr io.Writer, args ...string, )
RunCommandExitCode runs the command and compares the exit code.
func RunCommandExitCodeStderr ¶
func RunCommandExitCodeStderr( t *testing.T, newCommand func(use string) *appcmd.Command, expectedExitCode int, expectedStderr string, newEnv func(use string) map[string]string, stdin io.Reader, args ...string, )
RunCommandExitCodeStderr runs the command and compares the exit code and stderr output.
func RunCommandExitCodeStdout ¶
func RunCommandExitCodeStdout( t *testing.T, newCommand func(use string) *appcmd.Command, expectedExitCode int, expectedStdout string, newEnv func(use string) map[string]string, stdin io.Reader, args ...string, )
RunCommandExitCodeStdout runs the command and compares the exit code and stdout output.
func RunCommandExitCodeStdoutStderr ¶
func RunCommandExitCodeStdoutStderr( t *testing.T, newCommand func(use string) *appcmd.Command, expectedExitCode int, expectedStdout string, expectedStderr string, newEnv func(use string) map[string]string, stdin io.Reader, args ...string, )
RunCommandExitCodeStdoutStderr runs the command and compares the exit code, stdout, and stderr output.
func RunCommandSuccess ¶
func RunCommandSuccess( t *testing.T, newCommand func(use string) *appcmd.Command, newEnv func(use string) 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(use string) *appcmd.Command, expectedStdout string, newEnv func(use string) 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.