logoalt Hacker News

anthonypasq96yesterday at 8:54 PM2 repliesview on HN

youre verifying std lib function call counts in unit tests? lmao.


Replies

tayo42yesterday at 9:07 PM

You can do that with mocks if it's important that something is only called once, or likely there's some unintended side effect of calling it twice and tests woukd catch the bug

show 1 reply
noitpmederyesterday at 9:08 PM

You're not verifying the observable behavior of your application? lmao

show 3 replies