TestCoroutineScope
Deprecated
Use `TestScope` in combination with `runTest` instead.Please see the migration guide for details: https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-test/MIGRATION.md
A scope which provides detailed control over the execution of coroutines for tests.
This scope is deprecated in favor of TestScope. Please see the migration guide for an instruction on how to update the code for the new API.
Properties
The current virtual time on testScheduler.
The delay-skipping scheduler used by the test dispatchers running the code in this scope.
List of uncaught coroutine exceptions, for backward compatibility.
Functions
Advances the testScheduler by delayTimeMillis and runs the tasks up to that moment (inclusive).
Advances the testScheduler to the point where there are no tasks remaining.
Called after the test completes.
Convenience method for calling runBlockingTest on an existing TestCoroutineScope.
Run any tasks that are pending at the current virtual time, according to the testScheduler.
Runs a test in a TestCoroutineScope based on this one.