Source: libtest-mockmodule-perl Maintainer: Debian Perl Group Uploaders: Ansgar Burchardt Section: perl Testsuite: autopkgtest-pkg-perl Priority: optional Build-Depends: debhelper-compat (= 13), libmodule-build-perl Build-Depends-Indep: libsuper-perl , libtest-pod-coverage-perl , libtest-pod-perl , libtest-warnings-perl , perl Standards-Version: 4.5.1 Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libtest-mockmodule-perl Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libtest-mockmodule-perl.git Homepage: https://metacpan.org/release/Test-MockModule Rules-Requires-Root: no Package: libtest-mockmodule-perl Architecture: all Depends: ${misc:Depends}, ${perl:Depends}, libsuper-perl Description: Perl module to 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 be easily restored. This happens automatically when all MockModule objects for the given module go out of scope, or when you unmock() the subroutine.