Documentation
¶
Overview ¶
Package exectest provides helpers for testing code that spawns subprocesses by re-entering the test binary as the child process.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Path returns the path to the test executable. Path = sync.OnceValues(os.Executable) // DefaultCommands contains built-in helper commands available to re-entered test binaries. DefaultCommands = map[string]func([]string) int{ "exit": cmdExitCode, "echo": cmdEcho, "wait": cmdWait, } )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.