in reply to Re: Testing failures: How to override print to make it fail?
in thread Testing failures: How to override print to make it fail?
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.open ... or die ... print ... or die ...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Testing failures: How to override print to make it fail?
by dragonchild (Archbishop) on May 05, 2005 at 13:35 UTC | |
by adrianh (Chancellor) on May 05, 2005 at 13:40 UTC |