package
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Mar 12, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package testutil provides shared test helpers for builtin command tests.
-
func RunScript(t *testing.T, script, dir string, opts ...interp.RunnerOption) (string, string, int)
-
func RunScriptCtx(ctx context.Context, t *testing.T, script, dir string, ...) (string, string, int)
RunScript runs a shell script and returns stdout, stderr, and the exit code.
RunScriptCtx runs a shell script with a context and returns stdout, stderr,
and the exit code.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.