BaseKoinFlowTest

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
abstract val createTestContextWithConfiguration: suspend (configuration: C, scope: CoroutineScope) -> TC
Link copied to clipboard
open val filter: (Flow<T>) -> Flow<T>
Link copied to clipboard
Link copied to clipboard
abstract val flowFromTestContext: suspend TC.() -> F
Link copied to clipboard
var job: Job?
Link copied to clipboard
open override val onFailedToCreateTestContextWithConfiguration: (configuration: C) -> Unit
Link copied to clipboard
val scope: CoroutineScope

Functions

Link copied to clipboard
suspend fun action(action: ActionBlock)
Link copied to clipboard
expect open fun afterTest()
Link copied to clipboard
expect open fun beforeTest()
Link copied to clipboard
suspend fun mainAction(action: ScopeActionBlock<TC>)
Link copied to clipboard
suspend fun resetFlow()
Link copied to clipboard
suspend fun test(skip: Int, test: TestBlock<TC, T>)
Link copied to clipboard
fun testOnUIThread(configuration: C, cancelScopeAfterTest: Boolean, block: suspend TC.() -> Unit): TestResult
Link copied to clipboard
fun testWithFlowAndTestContext(configuration: C, createFlowInMainScope: Boolean, blockWithContext: FlowTestBlockWithContext<C, TC, T, F>): TestResult