devel/p5-Test-MockModule 0.177.0 OpenBSD
override subroutines in a module for unit testing
- System
- OpenBSD
- Repository
- OpenBSD ports
- Maintainer
- The OpenBSD ports mailing-list <[email protected]>
- Categories
- devel, perl5
Description
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 |
|---|---|---|
| OpenBSD | devel/p5-Test-MockModule | 0.177.0 |
| FreeBSD | devel/p5-Test-MockModule | 0.180.0 |
| NetBSD | devel/p5-Test-MockModule | 0.180.0nb1 |
| DragonFly | devel/p5-Test-MockModule | 0.179.0 |
| MidnightBSD | devel/p5-Test-MockModule | 0.180.0 |
Install
Binary package:
pkg_add p5-Test-MockModule
From the ports tree:
cd /usr/ports/devel/p5-Test-MockModule && make install
Dependencies
Build dependencies 1
Run dependencies 1
No port depends on this one.