package testing
Import Path
github.com/pancsta/asyncmachine-go/internal/testing (on go.dev)
Dependency Relation
imports 18 packages, and imported by one package
Involved Source Files
testing.go
Package-Level Functions (total 5)
NewDbgWorker creates a new worker instance of the am-dbg.
func NewRpcClient(t *testing.T, ctx context.Context, addr string, stateStruct am.Schema, stateNames am.S, consumer *am.Machine) *rpc.Client
NewRpcTest creates a new rpc server and client for testing, which exposes the
passed worker as a remote one, and binds payloads to the optional consumer.
TODO sync with rpc/rpc_test
Type Parameters:
G: any
RpcGet retrieves a value from the RPC server.
RpcShutdown shuts down the passed client and optionally a server.
Package-Level Variables (total 4)
var WorkerRpcAddr string![]() |
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. |