{"added":null,"apiVersion":1,"behindSince":null,"buildDepends":[],"categories":["devel","perl5"],"comment":"Mock system(), exec(), and qx() for testing","compare":null,"dependentCount":null,"description":"Mock system(), exec(), qx() (AKA `` and readpipe()) with your own\nfunctions in order to test code that may call them.\n\nSome uses might be:\n\n- avoid actually running the system command, just pretend we did\n  (simulate [un]expected output, return values, etc)\n- test various return value handling (e.g. the system command core dumps\n  how does the object handle that)\n- test that the arguments that will be passed to a system command\n  are correct\n- simulate that really hard to reproduce low level edge case to make\n  sure your code works correctly on affected systems\n- etc etc","flavors":[],"html":"https://daemonports.org/netbsd/devel/p5-Test-Mock-Cmd/","kind":"port","lastUpdate":"2026-07-16T19:01:23Z","license":["gnu-gpl-v2 OR artistic"],"maintainer":"pkgsrc-users@NetBSD.org","name":"p5-Test-Mock-Cmd","newest":false,"newestVersion":null,"noVulnData":false,"origin":"devel/p5-Test-Mock-Cmd","otherSystems":[],"packages":[{"repo":"NetBSD 10.1 x86_64","versions":["0.7nb3"]},{"repo":"NetBSD 10.1 aarch64","versions":["0.7nb3"]},{"repo":"SmartOS / illumos x86_64","versions":["0.7nb3"]},{"repo":"macOS 15 arm64","versions":["0.7nb3"]}],"pkgName":"p5-Test-Mock-Cmd-0.7nb3","related":null,"repository":"pkgsrc","requiredBy":[],"requiredByCount":0,"runDepends":["devel/p5-Test-Carp","lang/perl5"],"status":null,"system":"netbsd","systemLabel":"NetBSD","version":"0.7nb3","versions":null,"vulnerabilities":null,"www":"https://metacpan.org/pod/Test::Mock::Cmd"}
