Expand description
Test mock for shell::run_in_vm and related functions.
Provides a thread-local mock handler that intercepts shell commands during tests, backed by an in-memory filesystem simulation.
Structs§
- Mock
FsBuilder - Mock
Guard - Guard that clears the mock handler on drop.
- Mock
Response - Mock response for a shell command.
Functions§
- mock_fs
- Build a mock backed by an in-memory filesystem.
- pool_
fixture - Generate a pool spec JSON string for use in tests.
- tenant_
fixture - Generate a tenant config JSON string for use in tests.
Type Aliases§
- Shared
Fs - Shared reference to the in-memory filesystem backing the mock.