devel/p5-Mock-MonkeyPatch 1.03 FreeBSD
Monkey patching with test mocking in mind
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- ART10, GPLv1+
- Categories
- devel, perl5
- Package size
- 15.3 KiB, 52.2 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 |
|---|---|---|---|---|---|---|
| FreeBSD | devel/p5-Mock-MonkeyPatch | 1.03 newest | none known | - | [email protected] | - |
| DragonFly | 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 the ports tree:
cd /usr/ports/devel/p5-Mock-MonkeyPatch/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-Mock-MonkeyPatch>0:devel/p5-Mock-MonkeyPatch
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 1.03 | 1.03 | 1.02 | 1.03 | 1.03 |
| FreeBSD:14:quarterly | 1.03 | 1.03 | n/a | 1.03 | 1.03 |
| FreeBSD:15:latest | 1.03 | 1.03 | n/a | 1.03 | 1.03 |
| FreeBSD:15:quarterly | 1.03 | 1.03 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.03 | 1.03 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
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
As this port's Makefile names them.
Build 1
p5-Scalar-List-Utils>=1.56: lang/p5-Scalar-List-Utils
Runtime 1
p5-Scalar-List-Utils>=1.56: lang/p5-Scalar-List-Utils
The full lists below include those, and their dependencies in turn.
Build dependencies 7
Run dependencies 2
No port depends on this one.
Configuration
No options to configure.
- USES
- perl5
- Service scripts
- none
Files
pkg-plist 2
- %%SITE_PERL%%/Mock/MonkeyPatch.pm
- %%PERL5_MAN3%%/Mock::MonkeyPatch.3.gz
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| Mock-MonkeyPatch-1.03.tar.gz | 14256 | acc586530cb62e814166cacfb792b8977b6c3d56c77b169e6ab1c30d48e1d585 |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.