Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: too much testing?

by rvosa (Curate)
on Sep 30, 2005 at 19:29 UTC ( #496496=note: print w/ replies, xml ) Need Help??


in reply to too much testing?

I'm not sure if I understand this correctly, but couldn't you do:

ok(! $foo->getDetails( PARAM_ONE => 1234 ), 'missing parameter');


Comment on Re: too much testing?
Download Code
Re^2: too much testing?
by geektron (Curate) on Sep 30, 2005 at 20:17 UTC
    because the module being tested  croaks when parameters are missing, that doens't catch the intended failure condition.

    the eval is the closest without trying Test::Exception.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2014-12-27 22:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls