https://kotlinlang.org logo
#test
Title
# test
g

Gilberto Diaz

04/17/2020, 5:13 PM
I’m trying to assert if a function ran inside a
if() {} else {}
statement? How I can do that?
g

greg

04/18/2020, 11:35 PM
with mockk or mockito, should be able to mock the function and then use
verify { myFunc() }
u

ursus

04/19/2020, 7:05 AM
I dont think you should assert that. Assert state/behavior it produces
3 Views