Monkey patching with test mocking in mind

Edit Package perl-Mock-MonkeyPatch
https://metacpan.org/release/Mock-MonkeyPatch

Mocking is a common tool, especially for testing. By strategically replacing a subroutine, one can isolate segments (units) of code to test individually. When this is done it is important to know that the mocked sub was actually called and with what arguments it was called.

Mock::MonkeyPatch injects a subroutine in the place of an existing one. It returns an object by which you can revisit the manner in which the mocked subroutine was called. Further when the object goes out of scope (or when the restore method is called) the original subroutine is replaced.

Refresh
Refresh
Source Files
Filename Size Changed
Mock-MonkeyPatch-1.02.tar.gz 0000015294 14.9 KB
perl-Mock-MonkeyPatch.changes 0000000192 192 Bytes
perl-Mock-MonkeyPatch.spec 0000002233 2.18 KB
Latest Revision
Dirk Stoecker's avatar Dirk Stoecker (dstoecker) accepted request 914274 from Dirk Stoecker's avatar Dirk Stoecker (dstoecker) (revision 1)
For perl-Workflow update.
Comments 0
openSUSE Build Service is sponsored by