Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Unit testing, context and wantarray

by eyepopslikeamosquito (Archbishop)
on Aug 13, 2011 at 11:43 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-19 18:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found