How can I write unit tests to test a method that d...
# coroutines
k
How can I write unit tests to test a method that does access a
channel
to
receive
elements from it and posts them to a
LiveData
instance. I am able to mock the
channel
in the unit test to
send
to it mock elements but I am not able to coordinate the async nature of the problem without either blocking my test method or checking the
LiveData
before it has data.