libtest-mockmodule-perl - Perl module to override subroutines in a module for unit testing

Distribution: Debian 8 (Jessie)
Repository: Debian Main amd64
Package name: libtest-mockmodule-perl
Package version: 0.05
Package release: 2
Package architecture: all
Package type: deb
Installed size: 64 B
Download size: 8.79 KB
Official Mirror:
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.




    Source package: libtest-mockmodule-perl

    Install Howto

    1. Update the package index:
      # sudo apt-get update
    2. Install libtest-mockmodule-perl deb package:
      # sudo apt-get install libtest-mockmodule-perl


    • /usr/share/doc/libtest-mockmodule-perl/changelog.Debian.gz
    • /usr/share/doc/libtest-mockmodule-perl/changelog.gz
    • /usr/share/doc/libtest-mockmodule-perl/copyright
    • /usr/share/man/man3/Test::MockModule.3pm.gz
    • /usr/share/perl5/Test/


    2009-07-21 - Ansgar Burchardt <> libtest-mockmodule-perl (0.05-2) unstable; urgency=low [ Damyan Ivanov ] * debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser field (source stanza); Homepage field (source stanza). Changed: Maintainer set to Debian Perl Group <pkg-perl-> (was: Ben Hutchings <>); Ben Hutchings <> moved to Uploaders. * Add debian/watch. * remove Homepage from long description; Homepage: field already present [ gregor herrmann ] * debian/control: Changed: Switched Vcs-Browser field to ViewSVN (source stanza). * debian/control: Added: ${misc:Depends} to Depends: field. [ Nathan Handler ] * debian/watch: Update to ignore development releases. [ Ansgar Burchardt ] * Refresh rules for debhelper 7. * Move debhelper to Build-Depends. * Add myself to Uploaders. * Bump Standards-Version to 3.8.2. * Convert debian/copyright to proposed machine-readable format. [ gregor herrmann ] * debian/control: make short description a noun phrase.

    2005-12-31 - Ben Hutchings <> libtest-mockmodule-perl (0.05-1) unstable; urgency=low * Initial release - closes: #345397