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 coroutine scope that for launching test coroutines.
Properties
The current virtual time on testScheduler.
The current virtual time on testScheduler.
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.
Advances the testScheduler to the point where there are no tasks remaining.
Resets state of the Dispatchers.Main to the original main dispatcher.
Executes a testBody inside an immediate execution dispatcher.
Convenience method for calling runBlockingTest on an existing TestCoroutineDispatcher.
Convenience method for calling runBlockingTest on an existing TestCoroutineScope.
Convenience method for calling runBlockingTestOnTestScope on an existing TestScope.
A version of runBlockingTest that works with TestScope.
Run any tasks that are pending at the current virtual time, according to the testScheduler.
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.
Runs a test in a TestCoroutineScope based on this one.
This is an overload of runTest that works with TestCoroutineScope.
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.