https://kotlinlang.org logo
#mockk
Title
# mockk
r

Ryunos

02/22/2023, 2:53 PM
Hi, is there a way to check which every {} is used when a mock function is called? I’m using IntelliJ and my mocks are behaving strangely, I’m looking for a way to debug
l

Leonid Yavorskyi

02/22/2023, 7:52 PM
You can check like this:
Copy code
verify(exactly = 1) { mockObj.callMethod() }
r

Ryunos

02/23/2023, 4:04 PM
I’ll try when that question comes up again 🙂 I ended up finding what was happening with debug points outside of my mocks. Thank you!
15 Views