{"added":null,"apiVersion":1,"behindSince":null,"buildDepends":["devel/p5-CPAN-Requirements-Dynamic","devel/p5-ExtUtils-Config","devel/p5-ExtUtils-Helpers","devel/p5-ExtUtils-InstallPaths","devel/p5-Module-Build-Tiny","lang/p5-Scalar-List-Utils","lang/perl5.42"],"categories":["devel","perl5"],"comment":"Monkey patching with test mocking in mind","compare":null,"dependentCount":null,"description":"Mocking is a common tool, especially for testing. By strategically\nreplacing a subroutine, one can isolate segments (units) of code to\ntest individually. When this is done it is important to know that the\nmocked sub was actually called and with what arguments it was called.\n\nMock::MonkeyPatch injects a subroutine in the place of an existing one.\nIt returns an object by which you can revisit the manner in which the\nmocked subroutine was called. Further when the object goes out of scope\n(or when the \"restore\" method is called) the original subroutine is\nreplaced.","flavors":[],"html":"https://daemonports.org/devel/p5-Mock-MonkeyPatch/","kind":"port","lastUpdate":null,"license":["ART10","GPLv1+"],"maintainer":"svysh.fbsd@gmail.com","name":"p5-Mock-MonkeyPatch","newest":true,"newestVersion":"1.03","noVulnData":false,"origin":"devel/p5-Mock-MonkeyPatch","otherSystems":[{"maintainer":"svysh.fbsd@gmail.com","newest":true,"origin":"devel/p5-Mock-MonkeyPatch","path":"/dragonfly/devel/p5-Mock-MonkeyPatch/","system":"DragonFly","version":"1.03"},{"maintainer":"svysh.fbsd@gmail.com","newest":true,"noVulnData":true,"origin":"devel/p5-Mock-MonkeyPatch","path":"","system":"HardenedBSD","version":"1.03"},{"maintainer":"svysh.fbsd@gmail.com","newest":true,"noVulnData":true,"origin":"devel/p5-Mock-MonkeyPatch","path":"","system":"GhostBSD","version":"1.03"}],"packages":[{"repo":"FreeBSD:14:latest","versions":["1.03","1.03","1.02","1.03","1.03"]},{"repo":"FreeBSD:14:quarterly","versions":["1.03","1.03","n/a","1.03","1.03"]},{"repo":"FreeBSD:15:latest","versions":["1.03","1.03","n/a","1.03","1.03"]},{"repo":"FreeBSD:15:quarterly","versions":["1.03","1.03","n/a","n/a","n/a"]},{"repo":"FreeBSD:16:latest","versions":["1.03","1.03","n/a","n/a","n/a"]},{"repo":"FreeBSD:16:quarterly","versions":["n/a","n/a","n/a","n/a","n/a"]}],"pkgName":"p5-Mock-MonkeyPatch-1.03","related":null,"repository":"FreeBSD ports","requiredBy":[],"requiredByCount":0,"runDepends":["lang/p5-Scalar-List-Utils","lang/perl5.42"],"status":null,"system":"freebsd","systemLabel":"FreeBSD","version":"1.03","versions":null,"vulnerabilities":null,"www":"https://metacpan.org/dist/Mock-MonkeyPatch"}
