Hi everyone rather minor question but it's been bo...
# mockk
j
Hi everyone rather minor question but it's been bothering me for a while there's a bunch of places in our test suite where we do things like that:
Copy code
coEvery { getSomeFlowUseCase() } returns flowOf("a value")

viewModel.doStuff()

coVerify(exactly = 1) { getSomeFlowUseCase() }
So, no issue at test execution, passes if use case is called, fails if not BUT... Android Studio gives us a warning:
Flow is constructed but not used
Is there a way to properly get rid of it? Would like to avoid @Suppress if possible. Maybe build the test differently?