Revision history for Mock-Sub
0.10 2015-12-07
- all bugs fixed in this release reported by Joel Berger (jberger)
- fix issue #5: we now pass in any parameters passed to the mocked
function into the side_effect cref
- fix issue #6: return_value() now accepts lists (however, using the
param version of return_value, only a scalar is accepted).
- fix issue #8: called_with() now dies() if it's called before the
mocked sub has been
- fix issue #7: mock sub is now much more context aware
- fix issue #9: DESTROY() now unmock()s by default
(keep_mock_on_destroy param to override)
0.09 2015-12-01
- mocking a non-existent sub is now allowed, and spits out a warning
message
- unmock() removes the symtab entry if mock() created a fake
(non-existent) sub entry in the symbol table
- added side_effect() and return_value()
0.08 2015-11-30
- fixes bug #3: add eval() in side_effect in SYNOPSIS
- fixes bug #2: having side_effect after return_value breaks t/06
- fixes bug #1: add called_with(), to extract the args passed in to
the mocked sub
- fixes bug #4: completely validate that the sub param is a valid sub
- 'main::' is now prepended to subs if they don't have a package
- side_effect now properly returns last expression evaluated
- side_effect and return_value can now be sent in simultaneously
0.07 2015-11-29
- code cleanup
- pod updates
- opened bug 1: need to add with_args()
0.04 2015-11-29
- added name()
- many more tests
- major POD updates/fixes
0.02 2015-11-29
- renamed project from Test::MockSub to Mock::Sub
- added numerous test files
- added initial POD
0.01 2015-11-29
- initial import