python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Why does my stateflow not change in my unit tests?
I have a state flow that is init to true
private val isCreateProfileDisabledData = MutableStateFlow(true)
val isCreateProfileDisabled = isCreateProfileDisabledData.asStateFlow()
And then this fu...
sonrohancue
Votes: 0
Answers: 0
ContentResolver from ProviderTestRule doesn't notify ContentObserver
I'm trying to test my Flow based ContentResolver extension function:
abstract class Query {
abstract suspend fun runQuery(): Cursor?
}
private val mainThread = Handler(Looper.getMainLooper())
fu...

Frank Egan
Votes: 0
Answers: 0