testutil

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package testutil provides shared testscript commands used by the example end-to-end test suites.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commands

func Commands() map[string]func(testScript *testscript.TestScript, neg bool, args []string)

Commands returns the shared custom testscript commands registered by the example test suites.

exit-status <code> <program> [args...]
  Runs program and asserts the exact process exit code, leaving the
  command's stdout and stderr available for subsequent assertions.
  Use this to verify CONGA's exit-code contract: 2 for input/usage
  errors and 1 for runtime failures.

copy-fixture <source> <destination>
  Copies source (a path relative to the example package directory) into
  destination (a path relative to the testscript working directory).
  Use this to materialise fixture files without duplicating them as
  inline heredocs in every script.

Types

This section is empty.

Jump to

Keyboard shortcuts

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