[go: up one dir, main page]

Module tor_rtmock::time[][src]

Expand description

Functionality for simulating the passage of time in unit tests.

We do this by providing MockSleepProvider, a “SleepProvider” instance that can simulate timeouts and retries without requiring the actual system clock to advance.

Structs

MockSleepProvider

A dummy SleepProvider instance for testing.

Sleeping

A future returned by MockSleepProvider::sleep().