79362530

Date: 2025-01-16 17:27:15
Score: 0.5
Natty:
Report link

What worked for me is simply returning a flowOf().

@Test
    fun `execute() should return a response true when object is found`() = runTest {
       coEvery { repository.entityExists(id) } returns flowOf(Response.Success(true))
       ...
    }
Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: Guilherme Napoleão