testing

package
v0.19.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2026 License: MIT Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WorkerRpcAddr       = "localhost:53480"
	WorkerTelemetryAddr = "localhost:53470"

	EnvAmDbgWorkerRpcAddr       = "AM_DBG_WORKER_RPC_ADDR"
	EnvAmDbgWorkerTelemetryAddr = "AM_DBG_WORKER_TELEMETRY_ADDR"
)

Functions

func NewDbgWorker added in v0.8.0

func NewDbgWorker(
	realTty bool, p types.Params,
) (*debugger.Debugger, error)

NewDbgWorker creates a new worker instance of the am-dbg.

func NewRpcClient

func NewRpcClient(
	t *testing.T, ctx context.Context, addr string, netSrcSchema am.Schema,
	consumer *am.Machine,
) *rpc.Client

func NewRpcTest

func NewRpcTest(
	t *testing.T, ctx context.Context, netSrc *am.Machine,
	consumer *am.Machine,
) (*am.Machine, *rpc.Server, *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

func RpcShutdown

func RpcShutdown(ctx context.Context, c *rpc.Client, s *rpc.Server)

RpcShutdown shuts down the passed client and optionally a server.

Types

This section is empty.

Directories

Path Synopsis
cmd
am-dbg-worker command
AM_DBG_WORKER_ADDR AM_DBG_ADDR
AM_DBG_WORKER_ADDR AM_DBG_ADDR

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL