hey all - I understand that `inline` functions ar...
# mockk
hey all - I understand that
functions aren’t mockable (and not spyable from what I can tell?) does anyone have strategies for verifying that calls to a `MutableStateFlow`’s
inline fun <T> MutableStateFlow<T>.update(function: (T) -> T)
is invoked with the correct argument (or invoked at all)?
I would probably avoid mocking a MutableStateFlow object and use a library like Turbine for verifying the value ends up being what I expect it to be https://github.com/cashapp/turbine
👍 1