BSD Ports

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.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
FreeBSDdevel/p5-Mock-MonkeyPatch1.03 newestnone known-[email protected]-
DragonFlydevel/p5-Mock-MonkeyPatch1.03 newestnone known-[email protected]-
HardenedBSDdevel/p5-Mock-MonkeyPatch1.03 newestno data-[email protected]-
GhostBSDdevel/p5-Mock-MonkeyPatch1.03 newestno 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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.031.031.021.031.03
FreeBSD:14:quarterly1.031.03n/a1.031.03
FreeBSD:15:latest1.031.03n/a1.031.03
FreeBSD:15:quarterly1.031.03n/an/an/a
FreeBSD:16:latest1.031.03n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/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

Runtime 1

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
FileSizeSHA256
Mock-MonkeyPatch-1.03.tar.gz14256acc586530cb62e814166cacfb792b8977b6c3d56c77b169e6ab1c30d48e1d585
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.