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
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/p5-Mock-Sub | 1.09 |
| OpenBSD | devel/p5-Mock-Sub | 1.09 |
| DragonFly | devel/p5-Mock-Sub | 1.09 |
| HardenedBSD | devel/p5-Mock-Sub | 1.09 |
| GhostBSD | devel/p5-Mock-Sub | 1.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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 1.09 | 1.09 | 1.09 | 1.09 | 1.09 |
| FreeBSD:14:quarterly | 1.09 | 1.09 | n/a | 1.09 | 1.09 |
| FreeBSD:15:latest | 1.09 | 1.09 | n/a | 1.09 | 1.09 |
| FreeBSD:15:quarterly | 1.09 | 1.09 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.09 | 1.09 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/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
| File | Size | SHA256 |
|---|---|---|
| Mock-Sub-1.09.tar.gz | 17364 | 86ac0ff242e712df040c559aa0dcb871914d92f4b86977cf1402b6f8131a9c10 |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.