in reply to Micro Mocking: using local to help test subs
I've been meaning to write Test::MockPackage (or Test::MockModule) for quite some time now. It'd be handy to gather the most common idioms:
- always return this value
- return a series of values on subsequent calls
- always return true/false
- execute this sub
- log the call
|
---|
In Section
Meditations