Debian logoDebian Screenshots >

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.


Homepage

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


Statistics

912 other people were interested in this package here. The newest known version of this software is 0.172.0-1 (Information last updated 14 days ago.)