kosi-libs / MocKMP

A mocking processor for Kotlin Multiplatform
https://kosi-libs.org/mockmp
MIT License
183 stars 12 forks source link

fix receiver check #30

Closed glureau closed 2 years ago

glureau commented 2 years ago

mocker.verify was not checking the receiver due to a typo error in the assertion method. As a result, if 2 mock instances of the same class were tested, the order can be wrong and the verify method still return success.

SalomonBrys commented 2 years ago

if (receiver !== receiver) 😱 😱 😱

I feel so ashamed !

Thanks a lot for catching that !