laziness, impatience, and hubris | |
PerlMonks |
Re^5: Lessons learned from getting to 100% with Devel::Coverby adrianh (Chancellor) |
on Jul 30, 2004 at 14:27 UTC ( [id://378702]=note: print w/replies, xml ) | Need Help?? |
That may just be a stupid example, but testing that die happens?! Why on Bob's less than green Earth would you nay should you do that? Because testing the case when some_function() returns false is useful. What should happen? Should the program exit? Should the exception be caught? Is a false return value even possible? The whole reason I wrote Test::Exception was to make testing this sort of thing easier :-)
In Section
Meditations
|
|