Package-level declarations
Types
This is a scheduler for coroutines used in tests, providing the delay-skipping behavior.
A test dispatcher that can interface with a TestCoroutineScheduler.
A test result.
A test result.
A test result.
A coroutine scope that for launching test coroutines.
Properties
Functions
Moves the virtual clock of this dispatcher forward by the specified amount, running the scheduled tasks in the meantime.
Advances the testScheduler to the point where there are no tasks remaining.
Resets state of the Dispatchers.Main to the original main dispatcher.
Run any tasks that are pending at the current virtual time, according to the testScheduler.
Executes testBody as a test in a new coroutine, returning TestResult.
Sets the given dispatcher as an underlying dispatcher of Dispatchers.Main. All subsequent usages of Dispatchers.Main will use the given dispatcher under the hood.
Creates an instance of a TestDispatcher whose tasks are run inside calls to the scheduler.
Creates a TestScope.
Creates an instance of an unconfined TestDispatcher.