KoinFlowTest

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
abstract val createTestContext: suspend (scope: CoroutineScope) -> TC
Link copied to clipboard
open override val createTestContextWithConfiguration: suspend (configuration: Unit, 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: Unit) -> 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: Unit, cancelScopeAfterTest: Boolean, block: suspend TC.() -> Unit): TestResult
Link copied to clipboard
fun testWithFlow(block: KoinFlowTestBlock<TC, T, F>): TestResult
Link copied to clipboard
fun testWithFlowAndTestContext(configuration: Unit, createFlowInMainScope: Boolean, blockWithContext: FlowTestBlockWithContext<Unit, TC, T, F>): TestResult