Documentation
¶
Index ¶
- Constants
- Variables
- func KillProcessesByName(processName string) (killedPIDs []int32, errs []error)
- func NewCustom(t *testing.T, states am.Schema) *am.Machine
- func NewCustomNetSrc(t *testing.T, states am.Schema) *am.Machine
- func NewNoRels(t *testing.T, initialState am.S, suffix string) *am.Machine
- func NewNoRelsNetSrc(t *testing.T, initialState am.S, suffix string) *am.Machine
- func NewNoRelsNetSrcSchema(t *testing.T, initialState am.S, overlay am.Schema) *am.Machine
- func NewRels(t *testing.T, initialState am.S) *am.Machine
- func NewRelsNetSrc(t *testing.T, initialState am.S) *am.Machine
- func NewRelsNodeWorker(t *testing.T, initialState am.S) *am.Machine
- func RandListener(host string) net.Listener
- func RandPort(min, max int) string
Constants ¶
const EnvAmTestRunner = "AM_TEST_RUNNER"
Variables ¶
var ( RelsNodeWorkerSchema = am.SchemaMerge(ssnode.WorkerSchema, ss.States) RelsNodeWorkerStates = am.SAdd(ss.Names, ssnode.WorkerStates.Names()) )
var (
ConnInit sync.Mutex
)
Functions ¶
func KillProcessesByName ¶ added in v0.12.0
KillProcessesByName finds and attempts to terminate all processes with the given name. It returns a slice of PIDs that were successfully terminated and a slice of errors for any processes that could not be terminated.
func NewCustomNetSrc ¶ added in v0.17.0
NewCustomNetSrc creates a new worker with custom states.
func NewNoRelsNetSrc ¶ added in v0.17.0
NewNoRelsNetSrc creates a new RPC worker without relations between states.
func NewNoRelsNetSrcSchema ¶ added in v0.17.0
NewNoRelsNetSrcSchema creates a new RPC worker without relations between states and applies a schema overlay.
func NewRelsNetSrc ¶ added in v0.17.0
NewRelsNetSrc creates a new network source machine with basic relations between ABCD states.
func NewRelsNodeWorker ¶ added in v0.8.0
NewRelsNodeWorker creates a new Node 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 avoiding conflicts with other tests, using predefined addresses, unlike using port 0.
Types ¶
This section is empty.