Module aws_smithy_async::test_util
source · Available on crate feature
test-util
only.Expand description
Test utilities for time and sleep
Modules§
- Test time/sleep implementations that work by manually advancing time with a
tick()
Structs§
- Guard returned from
SleepGate::expect_sleep
- A sleep implementation where calls to
AsyncSleep::sleep
block untilSleepGate::expect_sleep
is called - A sleep implementation where calls to
AsyncSleep::sleep
will complete instantly. - Manually controlled time source
- Gate that allows
ControlledSleep
to advance.
Functions§
- Returns a trio of tools to test interactions with time
- 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.