Expand description
Test-only ProcessSpawner / ProcessHandle implementations.
Tests install a MockSpawner via
super::handle::install_spawner, enqueue per-spawn responses, and
drive the resulting MockProcess state explicitly via the controller
returned at enqueue time. There are zero real subprocesses, no
thread::sleep, no Instant::now polling.
Structsยง
- Mock
Handle Controller - Test-side controller for a
MockProcess. Cloneable; all clones reference the same underlying state. - Mock
Process - Mock process backed by a shared
MockState. - Mock
Process Config - Behaviour to script for a single mocked spawn.
- Mock
Spawner - Test
ProcessSpawnerthat returns scriptedMockProcesshandles and captures theSpawnSpecpassed to each spawn.