| Index | index by Group | index by Distribution | index by Vendor | index by creation date | index by Name | Mirrors | Help | Search |
| Name: perl-Test-MockModule | Distribution: Fedora Project |
| Version: 0.185.0 | Vendor: Fedora Project |
| Release: 1.fc45 | Build date: Thu May 7 17:03:30 2026 |
| Group: Unspecified | Build host: buildvm-x86-08.rdu3.fedoraproject.org |
| Size: 73561 | Source RPM: perl-Test-MockModule-0.185.0-1.fc45.src.rpm |
| Packager: Fedora Project | |
| Url: https://metacpan.org/release/Test-MockModule | |
| Summary: Override subroutines in a module for unit testing | |
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 easily be restored. This happens automatically when all MockModule objects for the given module go out of scope, or when you unmock() the subroutine.
GPL-1.0-or-later OR Artistic-1.0-Perl<