{"added":null,"apiVersion":1,"behindSince":null,"buildDepends":[],"categories":["devel","perl5"],"comment":"Quickly mock objects and classes, even temporarily replace them","compare":"/compare/p5-mock-quick/index.json","dependentCount":null,"description":"Mock-Quick is here to solve the current problems with Mocking\nlibraries.\n\nThere are a couple Mocking libraries available on CPAN. The primary\nproblems with these libraries include verbose syntax, and most\nimportantly side-effects. Some Mocking libraries expect you to mock\na specific class, and will unload it then redefine it. This is\nparticularly a problem if you only want to override a class on a\nlexical level.\n\nMock-Quick provides a declarative mocking interface that results\nin a very concise, but clear syntax. There are separate facilities\nfor mocking object instances, and classes. You can quickly create\nan instance of an object with custom attributes and methods. You\ncan also quickly create an anonymous class, optionally inheriting\nfrom another, with whatever methods you desire.\n\nMock-Quick also provides a tool that provides an OO interface to\noverriding methods in existing classes. This tool also allows for\nthe restoration of the original class methods. Best of all this is\na localized tool, when your control object falls out of scope the\noriginal class is restored.","flavors":[],"html":"https://daemonports.org/netbsd/devel/p5-Mock-Quick/","kind":"port","lastUpdate":"2026-07-16T19:01:23Z","license":["gnu-gpl-v2 OR artistic"],"maintainer":"pkgsrc-users@NetBSD.org","name":"p5-Mock-Quick","newest":true,"newestVersion":"1.111","noVulnData":false,"origin":"devel/p5-Mock-Quick","otherSystems":[{"maintainer":"perl@FreeBSD.org","newest":true,"origin":"devel/p5-Mock-Quick","path":"/devel/p5-Mock-Quick/","system":"FreeBSD","version":"1.111"},{"maintainer":"perl@FreeBSD.org","newest":true,"origin":"devel/p5-Mock-Quick","path":"/dragonfly/devel/p5-Mock-Quick/","system":"DragonFly","version":"1.111"},{"maintainer":"perl@FreeBSD.org","newest":true,"noVulnData":true,"origin":"devel/p5-Mock-Quick","path":"","system":"HardenedBSD","version":"1.111"},{"maintainer":"perl@FreeBSD.org","newest":true,"noVulnData":true,"origin":"devel/p5-Mock-Quick","path":"","system":"GhostBSD","version":"1.111"}],"packages":[{"repo":"NetBSD 10.1 x86_64","versions":["1.111nb6"]},{"repo":"NetBSD 10.1 aarch64","versions":["1.111nb6"]},{"repo":"SmartOS / illumos x86_64","versions":["1.111nb6"]},{"repo":"macOS 15 arm64","versions":["1.111nb6"]}],"pkgName":"p5-Mock-Quick-1.111nb6","related":null,"repository":"pkgsrc","requiredBy":[],"requiredByCount":0,"runDepends":["devel/p5-Exporter-Declare","lang/perl5"],"status":null,"system":"netbsd","systemLabel":"NetBSD","version":"1.111nb6","versions":null,"vulnerabilities":null,"www":"https://metacpan.org/pod/Mock::Quick"}
