Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Unit testing, context and wantarray

by eyepopslikeamosquito (Bishop)
on Aug 13, 2011 at 11:43 UTC ( #920167=note: print w/replies, xml ) Need Help??


in reply to Re^2: Unit testing, context and wantarray
in thread Unit testing, context and wantarray

I should be testing (perhaps via a mock object or similar), that my function does not do anything expensive (e.g., call a database function) to return a result when called in void context.
Such as playing nethack? :)

  • Comment on Re^3: Unit testing, context and wantarray

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2021-07-31 06:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?