I am having issues in verify block Verify block mi...
# mockk
r
I am having issues in verify block Verify block misses the functions declared inside a function
Copy code
fun fetch() = callbackFlow {
    fun tryEmitData(data) {
       // implementation
    }

    dataProvider.initialize { data, error -> 
       tryEmitData(data)
    }

}
I can see through debugger,
tryEmitData
is hit by debugger properly but verify misses the
tryEmiData
internal function block
j
your code suggests suspending functions. make sure you’re calling coverify after the code inside has finished
r
It was silly mistake. I did not spyked the object 😓