package testing
Import Path
/pkg/helpers/testing (on go.dev)
Dependency Relation
imports 9 packages, and imported by one package
Involved Source Files
Package testing provides testing helpers for state machines using testify.
Package-Level Functions (total 14)
AssertErr asserts that the machine is in the Exception state.
AssertIs asserts that the machine is in the given states.
AssertIs1 asserts that the machine is in the given state.
AssertNoErrEver asserts that the machine never was in the Exception state.
AssertNoErrNow asserts that the machine is not in the Exception state.
AssertNot asserts that the machine is not in the given states.
AssertNot1 asserts that the machine is not in the given state.
GroupWhen1 is a test version of [amhelp.GroupWhen1], which errors instead of
returning an error.
MachDebug sets up a machine for debugging in tests, based on the AM_DEBUG
env var, passed am-dbg address, log level and stdout flag.
MachDebugEnv sets up a machine for debugging in tests, based on env vars
only: AM_DBG_ADDR, AM_LOG, and AM_DEBUG.
Wait is a test version of [amhelp.Wait], which errors instead of returning
false.
WaitForAll is a test version of [amhelp.WaitForAll], which errors instead of
returning an error.
WaitForAny is a test version of [amhelp.WaitForAny], which errors instead of
returning an error.
WaitForErrAll is a test version of [amhelp.WaitForErrAll], which errors
instead of returning an error.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |