libtest-mockmodule-perl

Perl module to override subroutines in a module for unit testing

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.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://metacpan.org/release/Test-MockModule


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install libtest-mockmodule-perl