laziness, impatience, and hubris | |
PerlMonks |
Re^2: Testing failures: How to override print to make it fail?by eyepopslikeamosquito (Archbishop) |
on May 05, 2005 at 13:31 UTC ( [id://454355]=note: print w/replies, xml ) | Need Help?? |
I'm helping a workmate write his first ever tests for a new function he added to an existing module. Seeing that his new function had: I suggested it is good form to write tests for exceptional conditions ... then realized I had no idea how to do it. :-) BTW, Devel::Cover also nags you if you don't test the or die branches.
In Section
Seekers of Perl Wisdom
|
|