acpd_test library
Test utilities for acpd — in-memory transport pair and mock roles.
MemoryTransportPair creates two Transports wired back-to-back: messages
sent on one side arrive as incoming frames on the other. This is the
backbone of unit and integration tests that exercise the JSON-RPC engine
and role layer without spawning real processes.
Classes
- MemoryLineTransportPair
- A two-sided in-memory channel carrying newline-delimited JSON.
- MemoryTransportPair
- A pair of in-memory transports wired back-to-back.
- MockAgent
- A programmable mock agent for client-side tests.
- MockClient
- A programmable mock client for agent-side tests.