SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-Test-Mock-One rpm build for : OpenSuSE. For other distributions click perl-Test-Mock-One.

Name : perl-Test-Mock-One
Version : 0.011 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : lp156.1.1 Date : 2024-07-03 19:10:44
Group : Development/Libraries/Perl Source RPM : perl-Test-Mock-One-0.011-lp156.1.1.src.rpm
Size : 0.02 MB
Packager : https://www_suse_com/
Summary : Mock the world with one object
Description :
Be able to mock many things with little code by using AUTOLOAD.

The problem this module tries to solve is to allow testing many things
without having to write many lines of code. If you want to create mock
objects you often need to write code like this:

{
no warnings qw(redefine once);
local *Foo::thing = sub {
return bless({}, \'Baz\');
};
local *Baz::foo = sub { return 1 };
local *Baz::bar = sub { return 1 };
local *Baz::baz = sub { return 1 };
use warnings;


}

Test::Mock::One allows you to write a simple object that allows you to do
the same with

my $mock = Test::Mock::One->new(foo => 1, bar => 1, baz => 1);

my $override = Sub::Override->new(\'Foo::thing\' => sub { return $mock });



You don\'t actually need to define anything, by default method on a
Test::Mock::One object will return itself. You can tweak the behaviour by
how you instantiate the object. There are several attributes that control
the object, these are defined as X-Mock attributes, see
Test::Mock::One/METHODS for more on this.

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/15.6/noarch

Content of RPM  Provides Requires

Download
ftp.icm.edu.pl  perl-Test-Mock-One-0.011-lp156.1.1.noarch.rpm
     

Provides :
perl(Test::Mock::One)
perl(Test::Mock::Two)
perl-Test-Mock-One

Requires :
perl(:MODULE_COMPAT_5.26.1)
perl(List::Util) >= 1.33
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.26.1/Test
/usr/lib/perl5/vendor_perl/5.26.1/Test/Mock
/usr/lib/perl5/vendor_perl/5.26.1/Test/Mock/One.pm
/usr/lib/perl5/vendor_perl/5.26.1/Test/Mock/Two.pm
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-Test-Mock-One
/usr/share/doc/packages/perl-Test-Mock-One/CONTRIBUTORS
/usr/share/doc/packages/perl-Test-Mock-One/Changes
/usr/share/doc/packages/perl-Test-Mock-One/README.md
/usr/share/doc/packages/perl-Test-Mock-One/TODO
/usr/share/licenses/perl-Test-Mock-One
/usr/share/licenses/perl-Test-Mock-One/LICENSE
/usr/share/man/man3/Test::Mock::One.3pm.gz
/usr/share/man/man3/Test::Mock::Two.3pm.gz

 
ICM