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

Jakub Gwóźdź

07/12/2023, 12:27 PM
Hi there. I really love
confirmVerified(…)
thingie, I use it whenever possible but… is it possible to have this confirmVerified ignore calls to properties? At least to all the getters
MyClass(#NN).getXyz()
?
m

Mattia Tommasone

07/12/2023, 12:40 PM
i think that can be done, it should be a matter recognizing property getter calls in
confirmVerified
and skipping them I’d gladly review a PR about this 🙂
j

Jakub Gwóźdź

07/12/2023, 1:26 PM
I’ll see what I can do 🙂
Oh bummer. So I created a feature for that, but decided to also update README before creating PR. And lo and behold, I saw there’s already something similar called “excludeRecords” which basically does what I need, in much cleaner way. No need for the PR then 🙂
📖 1
m

Mattia Tommasone

07/26/2023, 8:27 AM
oh, sorry I hadn’t realized and had you working on something that was already there 😞
j

Jakub Gwóźdź

07/26/2023, 8:27 AM
next time, I’ll start with careful reading of Readme, lesson learned 🙂
nah, it’s not wasted time, a learned a bit more about mockk internals and came to appreciate it even more. what a wonderful piece of software!
7 Views