override subroutines in a module for unit testing
Project homepage: https://metacpan.org/release/Test-MockModule
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
Ports list build and test dependencies as well as runtime dependencies. pkg_add selects those needed for installation.
Direct dependencies
Runtime
- devel/p5-SUPER STEM->=1.20
Build
- devel/p5-Module-Build STEM->=0.38
- devel/p5-Module-Build
Test
- devel/p5-Test-Warnings
- devel/p5-SUPER STEM->=1.20
Used by (4 dependency relationships)
Includes library, runtime, build and test dependencies.