BSD Ports

devel/p5-Mock-Sub 1.09 FreeBSD

Mock package, object and standard subroutines, with unit testing in mind

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
ART10, GPLv1+
Categories
devel, perl5
Package size
16.1 KiB, 30.6 KiB installed

Description

Easy to use and very lightweight module for mocking out sub calls. Very useful for testing areas of your own modules where getting coverage may be difficult due to nothing to test against, and/or to reduce test run time by eliminating the need to call subs that you really don't want or need to test.

In the other systems

SystemPortVersion
FreeBSDdevel/p5-Mock-Sub1.09
OpenBSDdevel/p5-Mock-Sub1.09
DragonFlydevel/p5-Mock-Sub1.09
HardenedBSDdevel/p5-Mock-Sub1.09
GhostBSDdevel/p5-Mock-Sub1.09

Install

Binary package:

pkg install p5-Mock-Sub

From the ports tree:

cd /usr/ports/devel/p5-Mock-Sub/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-Mock-Sub>0:devel/p5-Mock-Sub

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

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 1
Run dependencies 1

No port depends on this one.

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 4
  • %%SITE_PERL%%/Mock/Sub.pm
  • %%SITE_PERL%%/Mock/Sub/Child.pm
  • %%PERL5_MAN3%%/Mock::Sub.3.gz
  • %%PERL5_MAN3%%/Mock::Sub::Child.3.gz
distinfo 1
FileSizeSHA256
Mock-Sub-1.09.tar.gz1736486ac0ff242e712df040c559aa0dcb871914d92f4b86977cf1402b6f8131a9c10
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.