devel/p5-Mock-MonkeyPatch 1.03 DragonFly
Monkey patching with test mocking in mind
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- ART10, GPLv1+
- Categories
- devel, perl5
- Package size
- 15.5 KiB, 53.1 KiB installed
Description
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.
In the other systems
The newest version among them is 1.03, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| DragonFly | devel/p5-Mock-MonkeyPatch | 1.03 newest | none known | - | [email protected] | - |
| FreeBSD | devel/p5-Mock-MonkeyPatch | 1.03 newest | none known | - | [email protected] | - |
| HardenedBSD | devel/p5-Mock-MonkeyPatch | 1.03 newest | no data | - | [email protected] | - |
| GhostBSD | devel/p5-Mock-MonkeyPatch | 1.03 newest | no data | - | [email protected] | - |
Install
Binary package:
pkg install p5-Mock-MonkeyPatch
From DPorts:
cd /usr/dports/devel/p5-Mock-MonkeyPatch && make install clean
Dependency graph
Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.
Dependencies
Run dependencies 2
No port depends on this one.