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.
Release | Stable | Testing |
---|---|---|
Fedora Rawhide | 0.177.0-8.fc40 | - |
Fedora 40 | 0.177.0-8.fc40 | - |
Fedora 39 | 0.177.0-6.fc39 | - |
Fedora 38 | 0.177.0-5.fc38 | - |
EPEL 9 | 0.177.0-1.el9 | - |
EPEL 8 | 0.170.0-5.el8 | - |
EPEL 7 | 0.05-18.el7 | - |
You can contact the maintainers of this package via email at
perl-Test-MockModule dash maintainers at fedoraproject dot org
.