Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
abstract class KoinViewModelTestContext<ViewModel : LifecycleViewModel>(appDeclaration: KoinAppDeclaration? = null, koinModules: List<Module>) : KoinUIThreadTest.KoinTestContext, UIThreadViewModelTest.ViewModelTestContext<ViewModel>

Properties

Link copied to clipboard
abstract val createTestContext: suspend (scope: CoroutineScope) -> Context
Link copied to clipboard
open override val createTestContextWithConfiguration: suspend (configuration: Unit, scope: CoroutineScope) -> Context

Functions

Link copied to clipboard
expect open fun afterTest()
Link copied to clipboard
expect open fun beforeTest()
Link copied to clipboard
fun testOnUIThread(configuration: Unit, cancelScopeAfterTest: Boolean, block: suspend Context.() -> Unit)
fun testOnUIThread(cancelScopeAfterTest: Boolean = false, block: suspend Context.() -> Unit)