https://kotlinlang.org logo
Title
r

Rohan Maity

02/19/2023, 6:40 PM
I am having issues in verify block Verify block misses the functions declared inside a function
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

Jakub Gwóźdź

02/20/2023, 8:48 AM
your code suggests suspending functions. make sure you’re calling coverify after the code inside has finished
r

Rohan Maity

03/03/2023, 10:04 AM
It was silly mistake. I did not spyked the object 😓