./devel/p5-Test-MockModule, Perl 5 module to override subroutines in a module for unit testing

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.171.0, Package name: p5-Test-MockModule-0.171.0, Maintainer: pkgsrc-users

The Perl 5 module 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.


Required to run:
[lang/perl5]

Required to build:
[devel/p5-Module-Build] [pkgtools/cwrappers]

Master sites: (Expand)

SHA1: 9208ccb864dad19da805b45dd9b6247fa3d619e2
RMD160: 10acf437354c548cf74eeeeb069f292907c5f66b
Filesize: 26.498 KB

Version history: (Expand)


CVS history: (Expand)


   2019-10-28 14:01:46 by Makoto Fujiwara | Files touched by this commit (2) | Package updated
Log message:
(devel/p5-Test-MockModule) Updated 0.170.0 to 0.171.0

v0.171.0
- 89dc5c0 Fixes #25 - mocking core::global no longer fails trying to load the \ 
module - Geoff Franks
- 9bb081a update ci for fewer infinite loops - Geoff Franks
- 289d014 Update release notes for all the newly merged PRs - Geoff Franks
- fef9e74 Allow chaining of new with mock, redefine, define - Nicolas Rochelemagne
- e136131 Prevent redefine() from triggering DESTROY. - Felipe Gasper
- 311f6b4 Adjust Travis CI configuration to use travis-perl.github.io - Nicolas \ 
Rochelemagne
- 2bed3e2 Add strict mode to ban the use of noop and mock. - Todd Rinaldo
- 0298d8d Provide define method so the mock method is unneeded in tests. - Todd \ 
Rinaldo
   2019-08-11 15:25:21 by Thomas Klausner | Files touched by this commit (3557) | Package updated
Log message:
Bump PKGREVISIONs for perl 5.30.0
   2019-06-30 22:17:50 by Nia Alarie | Files touched by this commit (1816) | Package updated
Log message:
Update packages using a search.cpan.org HOMEPAGE to metacpan.org.

The former now redirects to the latter.

This covers the most simple cases where http://search.cpan.org/dist/name
can be changed to https://metacpan.org/release/name.

Reviewed by hand to hopefully make sure no unwanted changes sneak in.
   2018-09-02 09:25:37 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
p5-Test-MockModule: update to 0.170.0.

v0.170.0
- 182d066 Fix versioning for semver conversion + PAUSE - Geoff Franks
- 4afeedf release v0.17.0 - CI Bot
- 9df8ac4 Add CI pipeline for releasing to cpan - Geoff Franks
- 577350e Pod - provide a code snippet for original usage - Nicolas R
- 3e4ec72 Add missing pod entries - Geoff Franks

v0.16
    - Fixes an issue where warnings were thrown for mismatched prototypes,
      when mocking a prototyped function.

      Thanks @toddr for the fix!
   2018-08-22 11:48:07 by Thomas Klausner | Files touched by this commit (3558)
Log message:
Recursive bump for perl5-5.28.0
   2018-05-09 08:39:55 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
p5-Test-MockModule: update to 0.15.

v0.15
    - Fixes a minor bug in the release tarball
   2018-05-06 08:39:40 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
p5-Test-MockModule: update to 0.14.

v0.14
    - Fixes a bug where the `redefine()` function was dying when attempting to
      mock a function that was defined further up a module's inheritance chain.
      It now only dies when the mocked function does not exist in the module being
      mocked, or any of its parent modules. Thanks @atoomic for the improvement!
   2017-10-09 09:33:35 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
p5-Test-MockModule: update to 0.13.

v0.13
    - Added the `redefine()` function. It works just like `mock()`, except if the
      method being mocked doesn't exist, it causes a panic. Many thanks to Felipe
      Gasper for this feature!