LazyViewModelTestContext

BaseUIThreadViewModelTest.LazyViewModelTestContext that lazily creates the view model

Parameters

coroutineScope

The CoroutineScope of the LazyViewModelTestContext

createViewModel

Creator for the LifecycleViewModel

Constructors

Link copied to clipboard
constructor(coroutineScope: CoroutineScope, createViewModel: () -> ViewModel)

Properties

Link copied to clipboard
Link copied to clipboard
open override val viewModel: ViewModel

Functions

Link copied to clipboard
open override fun dispose()