in reply to Re^4: Lessons learned from getting to 100% with Devel::Cover
in thread Lessons learned from getting to 100% with Devel::Cover
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? Testing your code should not ammount to testing the local perl installation.
I think you misunderstood. The idea is not to test that die happened, but to test that in certain exceptional circumstances, your code will die. The errors you throw/return/raise and the conditions that lead to that happening, are just as much a part of your code as the rest of it.
Not testing how your code handles an error, would be like an automaker just assuming the airbags, and crumple free zones work.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Lessons learned from getting to 100% with Devel::Cover
by belg4mit (Prior) on Jul 30, 2004 at 15:31 UTC | |
by Aristotle (Chancellor) on Jul 31, 2004 at 18:18 UTC | |
by stvn (Monsignor) on Jul 30, 2004 at 15:48 UTC |