Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^5: Lessons learned from getting to 100% with Devel::Cover

by adrianh (Chancellor)
on Jul 30, 2004 at 14:27 UTC ( [id://378702]=note: print w/replies, xml ) Need Help??


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?

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 :-)

  • Comment on Re^5: Lessons learned from getting to 100% with Devel::Cover

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://378702]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-19 23:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found