e2e

package
v0.33.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(t *testing.T, args ...string) string

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

func RunCombined(t *testing.T, args ...string) string

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

func RunExpectingError(t *testing.T, args ...string) (string, string)

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

func RunWithStdin(t *testing.T, stdin string, args ...string) string

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.

func RunWithStdinCombined

func RunWithStdinCombined(t *testing.T, stdin string, args ...string) string

RunWithStdinCombined is similar to RunCombined but also lets callers pass stdin.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL