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? :)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Unit testing, context and wantarray
by FunkyMonk (Chancellor) on Aug 13, 2011 at 14:15 UTC |