BaseFlowTest
abstract class BaseFlowTest<Configration, Context : BaseUIThreadTest.TestContext, T, F : Flow<T>>(val scope: CoroutineScope = MainScope(), val logger: Logger? = null) : BaseUIThreadTest<Configration, Context> , CoroutineScope
Inheritors
Properties
Link copied to clipboard
Link copied to clipboard
abstract val createTestContextWithConfiguration: suspend (configuration: Configration, scope: CoroutineScope) -> Context
Creates the TestContext based on Configuration and CoroutineScope
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun testOnUIThread(configuration: Configration, cancelScopeAfterTest: Boolean = false, block: suspend Context.() -> Unit)
Run your test block on the UI thread and inside the TestContext.
Link copied to clipboard
fun testWithFlowAndTestContext(configuration: Configration, createFlowInMainScope: Boolean = true, retainContextAfterTest: Boolean = false, blockWithContext: FlowTestBlockWithContext<Configration, Context, T, F>)