Skip to content

//reactivestate-test/com.ensody.reactivestate.test/AndroidCoroutineTest

AndroidCoroutineTest

[android]\ open class AndroidCoroutineTest : CoroutineTest

A CoroutineTest that also sets up an InstantTaskExecutorRule.

Constructors

AndroidCoroutineTest [android]
constructor()

Properties

Name Summary
attachedDisposables [android]
open override val attachedDisposables: DisposableGroup
instantTaskExecutorRule [android]
val instantTaskExecutorRule: InstantTaskExecutorRule
mainScope [android]
val ~~mainScope~~: CoroutineScope
testCoroutineDispatcher [android]
val ~~testCoroutineDispatcher~~: TestDispatcher
testCoroutineScope [android]
val ~~testCoroutineScope~~: TestScope
testDispatcher [android]
val testDispatcher: TestDispatcher
testScope [android]
val testScope: TestScope

Functions

Name Summary
collectFlow [android]
fun <T> TestScope.collectFlow(flow: Flow<T>, collector: suspend (T) -> Unit)
dispose [android]
open override fun dispose()
enterCoroutineTest [android]
fun enterCoroutineTest()
exitCoroutineTest [android]
fun exitCoroutineTest()
runBlockingTest [android]
open fun ~~runBlockingTest~~(block: suspend TestScope.() -> Unit): TestResult
runTest [android]
open override fun runTest(block: suspend TestScope.() -> Unit): TestResult