Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
open class LazyViewModelTestContext<ViewModel : LifecycleViewModel>(coroutineScope: CoroutineScope, createViewModel: () -> ViewModel) : BaseUIThreadViewModelTest.ViewModelTestContext<ViewModel> , CoroutineScope

ViewModelTestContext that lazily creates the view model

Properties

Link copied to clipboard
abstract val createTestContextWithConfiguration: suspend (configuration: Configuration, 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: Configuration, cancelScopeAfterTest: Boolean, block: suspend Context.() -> Unit)