|
|
| Welcome to the Monastery | |
| PerlMonks |
Re^3: Unit testing, context and wantarrayby eyepopslikeamosquito (Canon) |
| on Aug 13, 2011 at 11:43 UTC ( #920167=note: print w/ replies, xml ) | Need Help?? |
|
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? :)
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||