Expand description
Test utilities for time and sleep
Modules§
- tick_advance_ sleep 
- Test time/sleep implementations that work by manually advancing time with a tick()
Structs§
- CapturedSleep 
- Guard returned from SleepGate::expect_sleep
- ControlledSleep 
- A sleep implementation where calls to AsyncSleep::sleepblock untilSleepGate::expect_sleepis called
- InstantSleep 
- A sleep implementation where calls to AsyncSleep::sleepwill complete instantly.
- ManualTime Source 
- Manually controlled time source
- SleepGate 
- Gate that allows ControlledSleepto advance.
Functions§
- controlled_time_ and_ sleep 
- Returns a trio of tools to test interactions with time
- instant_time_ and_ sleep 
- Returns a duo of tools to test interactions with time. Sleeps will end instantly, but the desired length of the sleeps will be recorded for later verification.