testutil

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package testutil provides shared test helpers for builtin command tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunScript

func RunScript(t *testing.T, script, dir string, opts ...interp.RunnerOption) (string, string, int)

RunScript runs a shell script and returns stdout, stderr, and the exit code.

func RunScriptCtx

func RunScriptCtx(ctx context.Context, t *testing.T, script, dir string, opts ...interp.RunnerOption) (string, string, int)

RunScriptCtx runs a shell script with a context and returns stdout, stderr, and the exit code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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