in reply to
Re^2: Testing failures: How to override print to make it fail?
in thread Testing failures: How to override print to make it fail?
print() is generally considered one of those functions that "Just Works". adding "or die" to print is kinda ... dumb.
Of course, if you absolutely had to test print's success or failure, you could
use Fatal qw( print );
As for Devel::Cover ... I shoot for 90%+ coverage. There are several good conversations on D::C and why attempting to achieve 100% is ... well ... dumb. :-)
- In general, if you think something isn't in Perl, try it out, because it usually is. :-)
- "What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against?"