devel/p5-Test-MockModule 0.180.0nb1 NetBSD
Perl 5 module to override subroutines in a module for unit testing
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- Last update
- Commit
618415630a- License
- gnu-gpl-v3
- Categories
- devel, perl5, net
- Package size
- 11.1 KiB, 30.9 KiB installed
Description
The Perl 5 module Test::MockModule lets you temporarily redefine subroutines in other packages for the purposes of unit testing. A Test::MockModule object is set up to mock subroutines for a given module. The object remembers the original subroutine so it can be easily restored. This happens automatically when all MockModule objects for the given module go out of scope, or when you unmock() the subroutine.
In the other systems
| System | Port | Version |
|---|---|---|
| NetBSD | devel/p5-Test-MockModule | 0.180.0nb1 |
| FreeBSD | devel/p5-Test-MockModule | 0.180.0 |
| OpenBSD | devel/p5-Test-MockModule | 0.177.0 |
| DragonFly | devel/p5-Test-MockModule | 0.179.0 |
| MidnightBSD | devel/p5-Test-MockModule | 0.180.0 |
| HardenedBSD | devel/p5-Test-MockModule | 0.180.0 |
| GhostBSD | devel/p5-Test-MockModule | 0.180.0 |
Install
Binary package:
pkgin install p5-Test-MockModule
From pkgsrc:
cd /usr/pkgsrc/devel/p5-Test-MockModule && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 0.180.0nb1 |
| NetBSD 10.1 aarch64 | 0.180.0 |
| SmartOS / illumos x86_64 | 0.180.0nb1 |
| macOS 15 arm64 | 0.180.0nb1 |