Package Info

perl-Test-MockModule


Override subroutines in a module for unit testing


Unspecified

'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.


License: Artistic-1.0 OR GPL-1.0-or-later
URL: https://metacpan.org/release/Test-MockModule

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.178.0-bp156.2.3.1 info openSUSE-2024-180 2024-06-27 15 SP5 Update
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Test-MockModule
0.177.0-bp156.1.1 info GA Release 2023-12-08 15 SP6
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Test-MockModule