Documentation
¶
Overview ¶
Package test contains functionality to test the application with testscript.
Index ¶
- func CmdDlv(ts *testscript.TestScript, neg bool, args []string)
- func CmdKill(ts *testscript.TestScript, neg bool, args []string)
- func CmdSleep(ts *testscript.TestScript, neg bool, args []string)
- func CmdTxtProc(ts *testscript.TestScript, neg bool, args []string)
- func CmdsTestScript() map[string]func(ts *testscript.TestScript, neg bool, args []string)
- func SetupEnvDocker(env *testscript.Env) error
- func SetupEnvRandom(env *testscript.Env) error
- func SetupWSL(t *testing.T) func(env *testscript.Env) error
- func SetupWorkDirUnixWin(env *testscript.Env) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CmdDlv ¶
func CmdDlv(ts *testscript.TestScript, neg bool, args []string)
CmdDlv implements a custom testscript command for debugging with Delve
func CmdKill ¶
func CmdKill(ts *testscript.TestScript, neg bool, args []string)
CmdKill is an override of [github.com/rogpeppe/go-internal/testscript.(*TestScript).cmdKill]. It supports more kill signals than the original.
func CmdSleep ¶
func CmdSleep(ts *testscript.TestScript, neg bool, args []string)
CmdSleep pauses execution for a specified duration
func CmdTxtProc ¶
func CmdTxtProc(ts *testscript.TestScript, neg bool, args []string)
CmdTxtProc provides flexible text processing capabilities
func CmdsTestScript ¶
func CmdsTestScript() map[string]func(ts *testscript.TestScript, neg bool, args []string)
CmdsTestScript provides custom commands for testscript execution.
func SetupEnvDocker ¶
func SetupEnvDocker(env *testscript.Env) error
SetupEnvDocker configures docker backend in the test environment.
func SetupEnvRandom ¶
func SetupEnvRandom(env *testscript.Env) error
SetupEnvRandom sets up a random environment variable.
func SetupWSL ¶
func SetupWSL(t *testing.T) func(env *testscript.Env) error
SetupWSL sets up a work dir env variable using WSL mount path.
func SetupWorkDirUnixWin ¶
func SetupWorkDirUnixWin(env *testscript.Env) error
SetupWorkDirUnixWin sets up a work dir env variable in unix style.
Types ¶
This section is empty.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package plugins includes all test plugins.
|
Package plugins includes all test plugins. |
|
testactions
Package testactions contains actions that help to test the app.
|
Package testactions contains actions that help to test the app. |