Skip to main content

Crate seams_rs_fake

Crate seams_rs_fake 

Source
Expand description

Deterministic in-memory implementations of every seams-rs-core port.

ManualClock advances via explicit test calls. InstantSleeper returns immediately and records requested durations. CurrentThreadSpawner runs spawn_blocking closures inline; DeferredSpawner captures handles for explicit test-controlled joining. MemoryFileSystem is an in-memory VFS exposing both FileSystem and AsyncFileSystem backed by the same state, with scripted error injection by (path, FsOp).

Re-exports§

pub use memory_fs::FsOp;
pub use memory_fs::MemoryFileSystem;

Modules§

memory_fs
MemoryFileSystem: in-memory VFS implementing both the sync FileSystem and async AsyncFileSystem ports over the same state.

Structs§

CurrentThreadSpawner
Spawner that runs each closure synchronously on the calling thread.
DeferredSpawner
Spawner that defers closure execution until run_pending / join_all or an explicit join on the returned handle.
InstantSleeper
Sleeper that records each request and returns immediately.
ManualClock
Clock whose time advances only via explicit advance / set_now_ns calls.