Documentation ¶
Index ¶
- Constants
- Variables
- func NewCustom(t *testing.T, states am.Struct) *am.Machine
- func NewCustomRpcWorker(t *testing.T, states am.Struct) *am.Machine
- func NewNoRels(t *testing.T, initialState am.S) *am.Machine
- func NewNoRelsRpcWorker(t *testing.T, initialState am.S) *am.Machine
- func NewRels(t *testing.T, initialState am.S) *am.Machine
- func NewRelsNodeWorker(t *testing.T, initialState am.S) *am.Machine
- func NewRelsRpcWorker(t *testing.T, initialState am.S) *am.Machine
- func RandListener(host string) net.Listener
- func RandPort(min, max int) string
Constants ¶
View Source
const EnvAmTestRunner = "AM_TEST_RUNNER"
Variables ¶
View Source
var ( RelsNodeWorkerStruct = am.StructMerge(ssnode.WorkerStruct, ss.States) RelsNodeWorkerStates = am.SAdd(ss.Names, ssnode.WorkerStates.Names()) )
View Source
var (
ConnInit sync.Mutex
)
Functions ¶
func NewCustomRpcWorker ¶ added in v0.8.0
NewCustomRpcWorker creates a new worker with custom states.
func NewNoRelsRpcWorker ¶ added in v0.8.0
NewNoRelsRpcWorker creates a new RPC worker without relations between states.
func NewRelsNodeWorker ¶ added in v0.8.0
NewRelsNodeWorker creates a new Node worker machine with basic relations between ABCD states.
func NewRelsRpcWorker ¶ added in v0.8.0
NewRelsRpcWorker creates a new RPC worker machine with basic relations between ABCD states.
func RandListener ¶
RandListener creates a new listener on an open port between 40000 and 50000. It allows to avoid conflicts with other tests, using predefined addresses, unlike using port 0.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.