Documentation ¶
Overview ¶
Package scripttest adapts the script engine for use in tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CachedExec ¶
CachedExec returns a Condition that reports whether the PATH of the test binary itself (not the script's current environment) contains the named executable.
func DefaultCmds ¶
DefaultCmds returns a set of broadly useful script commands.
This set includes all of the commands in script.DefaultCmds, as well as a "skip" command that halts the script and causes the testing.TB passed to Run to be skipped.
func DefaultConds ¶
DefaultConds returns a set of broadly useful script conditions.
This set includes all of the conditions in script.DefaultConds, as well as:
Conditions of the form "exec:foo" are active when the executable "foo" is found in the test process's PATH, and inactive when the executable is not found.
"short" is active when testing.Short() is true.
"verbose" is active when testing.Verbose() is true.
Types ¶
This section is empty.