EXPR logicop die;. Doesn't seem too complicated to me.
It doesn't need to be complicated for you to still test it.
Besides its less about testing a single line, and more about testing how that single line interacts with all the code that comes before and after that line and how they handles the circumstances which created the error condition.
In reply to Re^7: Lessons learned from getting to 100% with Devel::Cover
by stvn
in thread Lessons learned from getting to 100% with Devel::Cover
by leriksen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |