There's more than one way to do things | |
PerlMonks |
Re^3: Unit testing, context and wantarrayby eyepopslikeamosquito (Archbishop) |
on Aug 13, 2011 at 11:43 UTC ( [id://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
|
|