BSD Ports

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

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

RepositoryVersion
NetBSD 10.1 x86_640.180.0nb1
NetBSD 10.1 aarch640.180.0
SmartOS / illumos x86_640.180.0nb1
macOS 15 arm640.180.0nb1

Dependencies

Run dependencies 2

Commit history 1

DateCommitCreditsLog message
618415630a wiz *: recursive bump for perl5 5.44.0