Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Testing error handling that calls "die"

by TomDLux (Vicar)
on Dec 26, 2011 at 19:59 UTC ( [id://945127]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
         That should be pretty clear. Look at the new test now. Use the th
    +rows_ok  
         test from Test::Exception to test the Carp::croak(). Using Test::
    +Most  
    ...
             throws_ok { $person->full_name }
                 qr/^Both first and last names must be set/,
                 '... and full_name() should croak() if the either name is
    + not set';
    

Log In?
Username:
Password:

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

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

    No recent polls found