FlowTest
abstract class FlowTest<T, F : Flow<T>>(scope: CoroutineScope = MainScope()) : BaseFlowTest<Unit, BaseUIThreadTest.EmptyTestContext, T, F>
Inheritors
Properties
Link copied to clipboard
Link copied to clipboard
open override val createTestContextWithConfiguration: suspend (configuration: Unit, scope: CoroutineScope) -> BaseUIThreadTest.EmptyTestContext
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: Unit, cancelScopeAfterTest: Boolean = false, block: suspend BaseUIThreadTest.EmptyTestContext.() -> Unit)
Run your test block on the UI thread and inside the TestContext.
Link copied to clipboard
Link copied to clipboard
fun testWithFlowAndTestContext(configuration: Unit, createFlowInMainScope: Boolean = true, retainContextAfterTest: Boolean = false, blockWithContext: FlowTestBlockWithContext<Unit, BaseUIThreadTest.EmptyTestContext, T, F>)