Documentation
¶
Index ¶
- func Run(t *testing.T, args ...string) string
- func RunCombined(t *testing.T, args ...string) string
- func RunExpectingError(t *testing.T, args ...string) (string, string)
- func RunWithStdin(t *testing.T, stdin string, args ...string) string
- func RunWithStdinCombined(t *testing.T, stdin string, args ...string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
Run executes the neva command with the given arguments. It asserts success (exit code 0) and returns captured stdout. Stderr is passed through to os.Stderr for visibility on failure.
func RunCombined ¶
RunCombined executes the neva command and captures both stdout and stderr (combined), asserting a zero exit code. Combined output is returned as a string.
func RunExpectingError ¶
RunExpectingError executes the neva command and asserts it fails with the expected exit code (default 1). It returns stdout and stderr captured as strings.
func RunWithStdin ¶
RunWithStdin executes the neva command with the given arguments and stdin input. It asserts success (exit code 0) and returns captured stdout. Stderr is passed through to os.Stderr for visibility on failure.
Types ¶
This section is empty.