pub struct TestWorld {
pub caps: Capabilities,
pub clock_ms: u64,
pub files: HashMap<String, String>,
pub env: HashMap<String, String>,
pub rng: u64,
}Expand description
One test’s sealed world.
Fields§
§caps: Capabilities§clock_ms: u64Virtual clock (ms since the Unix epoch), starting at SEALED_EPOCH_MS.
files: HashMap<String, String>The in-memory filesystem (path → content), empty per test.
env: HashMap<String, String>The sealed environment, empty unless the test declares variables.
rng: u64SplitMix64 state — the test’s recorded entropy stream.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TestWorld
impl RefUnwindSafe for TestWorld
impl Send for TestWorld
impl Sync for TestWorld
impl Unpin for TestWorld
impl UnsafeUnpin for TestWorld
impl UnwindSafe for TestWorld
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more