BSD Ports

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

SystemPortVersion
OpenBSDdevel/p5-Test-MockModule0.177.0
FreeBSDdevel/p5-Test-MockModule0.180.0
NetBSDdevel/p5-Test-MockModule0.180.0nb1
DragonFlydevel/p5-Test-MockModule0.179.0
MidnightBSDdevel/p5-Test-MockModule0.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.