Name : perl-Test-Resub
| |
Version : 2.03
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp156.4.1
| Date : 2024-07-03 19:10:48
|
Group : Development/Libraries/Perl
| Source RPM : perl-Test-Resub-2.03-lp156.4.1.src.rpm
|
Size : 0.02 MB
| |
Packager : https://www_suse_com/
| |
Summary : Lexically scoped monkey patching for testing
|
Description :
This module allows you to temporarily replace a subroutine/method with arbitrary code. Later, you can tell how many times was it called and with what arguments each time.
You may not actually need this module. Many times you\'ll be able to get away with something like this:
{ no warnings \'redefine\' local *Somewhere::show = sub { return \'kwaa\' };
is( Somewhere->show(\'me the money\'), \'kwaa\' ); }
This module is handy if you\'re replacing a subroutine with a function prototype, or for when you need to prove the inputs to the functions that you\'re calling.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/15.6/noarch |