fake

command
v0.18.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Command fake is the fake child of the test kit. A scenario puts it in place of a program that the extension runs, with the scenario command fake <name>. The kit builds it from this source, because a Go module zip keeps no executable bit.

It runs the actions of the file <name>.fake beside it, one per line, in order. A blank line and a line that starts with # do nothing.

stdout <text>    writes text and a newline to stdout
stderr <text>    writes text and a newline to stderr
stdin            copies stdin to stdout
env              writes the name of each variable of its environment, sorted, one per line, never a value
sleep <duration> waits, such as sleep 30s, until a signal ends it
exit <code>      exits with code

It exits with 0 after the last action, and with 127 when its file is missing or holds an unknown action.

Jump to

Keyboard shortcuts

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