BaseUIThreadViewModelTest
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
Link copied to clipboard
A BaseUIThreadTest.TestContext that provides a LifecycleViewModel
Properties
Link copied to clipboard
abstract val createTestContextWithConfiguration: suspend (configuration: Configuration, scope: CoroutineScope) -> Context
Functions
Link copied to clipboard
Link copied to clipboard
fun testOnUIThread(configuration: Configuration, cancelScopeAfterTest: Boolean, block: suspend Context.() -> Unit)