TestCoroutineScope

fun TestCoroutineScope(context: CoroutineContext = EmptyCoroutineContext): TestCoroutineScope(source)

Deprecated

This constructs a `TestCoroutineScope` with a deprecated `CoroutineDispatcher` by default. Please use `createTestCoroutineScope` instead.

Replace with

import kotlin.coroutines.EmptyCoroutineContext
createTestCoroutineScope(TestCoroutineDispatcher() + TestCoroutineExceptionHandler() + context)

A coroutine scope for launching test coroutines using TestCoroutineDispatcher.

createTestCoroutineScope is a similar function that defaults to StandardTestDispatcher.