Module aws_smithy_async::test_util
source · Expand description
Test utilities for time and sleep
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.