Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Unit testing best practices. Parent comment
It seems like out of a matter of practicality that sometimes it would be best to have a unit test for a private method- dogma be damned.
Personally, if it's tricky code or something I worry about, I test it. If you change it, write your own damn test :-)
There are no comments on this comment yet.
It seems like out of a matter of practicality that sometimes it would be best to have a unit test for a private method- dogma be damned.
Personally, if it's tricky code or something I worry about, I test it. If you change it, write your own damn test :-)