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 reply to Re^5: Lessons learned from getting to 100% with Devel::Cover
by adrianh
in thread Lessons learned from getting to 100% with Devel::Cover
by leriksen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |