TestScope

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

Creates a TestScope.

It ensures that all the test module machinery is properly initialized.

Throws

if context has an CoroutineExceptionHandler that is not an UncaughtExceptionCaptor.