Hacker News new | ask | show | jobs
by bdangubic 171 days ago
laziness? unprofessionalism? both? or something else?
2 comments

You forgot difficult. How do you test a system call failure? How do you test a system call failure when the first N calls need to pass? Be careful how you answer, some answers technically fall into the "undefined behavior" category (if you are using C or C++).
... Is that not what mocking is for?
all of the above.