runTest

actual fun runTest(skipDelays: Boolean, context: CoroutineContext, before: suspend CoroutineScope.() -> Unit, after: suspend CoroutineScope.() -> Unit, block: suspend CoroutineScope.() -> Unit): ApolloTestResult
expect fun runTest(skipDelays: Boolean = false, context: CoroutineContext = EmptyCoroutineContext, before: suspend CoroutineScope.() -> Unit = {}, after: suspend CoroutineScope.() -> Unit = {}, block: suspend CoroutineScope.() -> Unit): ApolloTestResult

Utility method that executes the given block with optional before and after blocks.

When skipDelays is true, the block is executed in kotlinx.coroutines.test.runTest, otherwise in runBlocking.

actual fun runTest(skipDelays: Boolean, context: CoroutineContext, before: suspend CoroutineScope.() -> Unit, after: suspend CoroutineScope.() -> Unit, block: suspend CoroutineScope.() -> Unit): ApolloTestResult
actual fun runTest(skipDelays: Boolean, context: CoroutineContext, before: suspend CoroutineScope.() -> Unit, after: suspend CoroutineScope.() -> Unit, block: suspend CoroutineScope.() -> Unit): ApolloTestResult
actual fun runTest(skipDelays: Boolean, context: CoroutineContext, before: suspend CoroutineScope.() -> Unit, after: suspend CoroutineScope.() -> Unit, block: suspend CoroutineScope.() -> Unit): ApolloTestResult