Skip to main content

Module scripted

Module scripted 

Source
Expand description

Scripted shell for driving the spinner overlay in tests without spawning real OS processes.

ScriptedShell and Script are intended for testing use. They are not gated behind #[cfg(test)] so that downstream crates can use them in their own test suites, but they carry no meaningful runtime cost in production builds (LTO eliminates unused code).

Use ScriptedShell::with_config to customise overlay behaviour (e.g. viewport height).

Structsยง

Script
A sequence of stdout/stderr events and delays that ScriptedShell replays through the spinner overlay renderer.
ScriptedShell
A Shell implementation that drives the real spinner overlay using pre-configured output scripts. No OS processes are spawned.