OpenBSD Handbook

OpenBSD 7.9 release · amd64 · Generated 2026-09-09

p5-Test-MockModule-0.177.0

override subroutines in a module for unit testing

Back to search · Project homepage

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.

Package information

Ports path
devel/p5-Test-MockModule
Package architecture
*
Maintainer
The OpenBSD ports mailing-list <ports@openbsd.org>
Categories
devel, perl5
Available flavors
None listed

These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.

Direct dependencies

Runtime

Build

Test

Used by (4 dependency relationships)

Includes library, runtime, build and test relationships. Results load 100 at a time.

Installing and updating packages · Package details as JSON