Expand description
Test helpers for the Ito workspace.
This crate provides small utilities used in integration tests and snapshot tests across the workspace. It is not intended for production code paths.
Modules§
- mock_
repos - In-memory mock implementations of domain repository traits for unit testing. In-memory mock implementations of domain repository traits for unit testing.
- pty
- PTY helpers for driving interactive commands in tests. PTY-based command runners for interactive integration tests.
Structs§
- CmdOutput
- Captured output from running a command in tests.
Functions§
- collect_
file_ bytes - Collect all file bytes under
root, keyed by normalized relative paths. - copy_
dir_ all - Recursively copy
fromtoto. - normalize_
text - Normalize text for deterministic snapshots.
- reset_
dir - Replace the contents of
dstwith a recursive copy ofsrc. - run_
rust_ candidate - Executes the Ito candidate binary with the supplied arguments in a deterministic test environment and returns the captured output.
- rust_
candidate_ command - Build a
Commandused to invoke the Rust candidate binary.