SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

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

Name : perl-Test-Magpie
Version : 0.11 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : lp155.4.2 Date : 2023-05-17 17:49:39
Group : Development/Libraries/Perl Source RPM : perl-Test-Magpie-0.11-lp155.4.2.src.rpm
Size : 0.08 MB
Packager : https://www_suse_com/
Summary : Mocking framework with method stubs and behaviour verification
Description :
Test::Magpie is a test double framework heavily inspired by the Mockito
framework for Java, and also the Python-Mockito project. In Mockito, you
\"spy\" on objects for their behaviour, rather than being upfront about what
should happen. I find this approach to be significantly more flexible and
easier to work with than mocking systems like EasyMock, so I created a Perl
implementation.

* Mock objects

Mock objects, represented by Test::Magpie::Mock objects, are objects that
pretend to be everything you could ever want them to be. A mock object can
have any method called on it, does every roles, and isa subclass of any
superclass. This allows you to easily throw a mock object around it will be
treated as though it was a real object.

* Method stubbing

Any method can be called on a mock object, and it will be logged as an
invocation. By default, method calls return \'undef\' in scalar context or an
empty list in list context. Often, though, clients will be interested in
the result of calling a method with some arguments. So you may specify how
a method stub should respond when it is called.

* Verify interactions

After calling your concrete code (the code under test) you may want to
check that the code did operate correctly on the mock. To do this, you can
use verifications to make sure code was called, with correct parameters and
the correct amount of times.

* Argument matching

Magpie gives you some helpful methods to validate arguments passed in to
calls. You can check equality between arguments, or consume a general type
of argument, or consume multiple arguments. See
Test::Magpie::ArgumentMatcher for the juicy details.

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

Content of RPM  Changelog  Provides Requires

Download
ftp.icm.edu.pl  perl-Test-Magpie-0.11-lp155.4.2.noarch.rpm
     

Provides :
perl(Test::Magpie)
perl(Test::Magpie::ArgumentMatcher)
perl(Test::Magpie::Inspect)
perl(Test::Magpie::Invocation)
perl(Test::Magpie::Meta::Class)
perl(Test::Magpie::Mock)
perl(Test::Magpie::Role::HasMock)
perl(Test::Magpie::Role::MethodCall)
perl(Test::Magpie::Stub)
perl(Test::Magpie::Types)
perl(Test::Magpie::Util)
perl(Test::Magpie::Verify)
perl(Test::Magpie::When)
perl-Test-Magpie

Requires :
perl(:MODULE_COMPAT_5.26.1)
perl(Devel::PartialDump)
perl(Moose)
perl(Moose::Meta::Class)
perl(Moose::Role)
perl(Moose::Util)
perl(MooseX::Types)
perl(MooseX::Types::Moose)
perl(MooseX::Types::Structured)
perl(Set::Object)
perl(UNIVERSAL::ref)
perl(aliased)
perl(experimental)
perl(namespace::autoclean)
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/Magpie
/usr/lib/perl5/vendor_perl/5.26.1/Test/Magpie.pm
/usr/lib/perl5/vendor_perl/5.26.1/Test/Magpie/ArgumentMatcher.pm
/usr/lib/perl5/vendor_perl/5.26.1/Test/Magpie/Inspect.pm
/usr/lib/perl5/vendor_perl/5.26.1/Test/Magpie/Invocation.pm
/usr/lib/perl5/vendor_perl/5.26.1/Test/Magpie/Meta
/usr/lib/perl5/vendor_perl/5.26.1/Test/Magpie/Meta/Class.pm
/usr/lib/perl5/vendor_perl/5.26.1/Test/Magpie/Mock.pm
/usr/lib/perl5/vendor_perl/5.26.1/Test/Magpie/Role
/usr/lib/perl5/vendor_perl/5.26.1/Test/Magpie/Role/HasMock.pm
/usr/lib/perl5/vendor_perl/5.26.1/Test/Magpie/Role/MethodCall.pm
/usr/lib/perl5/vendor_perl/5.26.1/Test/Magpie/Stub.pm
/usr/lib/perl5/vendor_perl/5.26.1/Test/Magpie/Types.pm
/usr/lib/perl5/vendor_perl/5.26.1/Test/Magpie/Util.pm
/usr/lib/perl5/vendor_perl/5.26.1/Test/Magpie/Verify.pm
/usr/lib/perl5/vendor_perl/5.26.1/Test/Magpie/When.pm
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-Test-Magpie
/usr/share/doc/packages/perl-Test-Magpie/Changes
/usr/share/doc/packages/perl-Test-Magpie/README
/usr/share/licenses/perl-Test-Magpie
/usr/share/licenses/perl-Test-Magpie/LICENSE
/usr/share/man/man3/Test::Magpie.3pm.gz
/usr/share/man/man3/Test::Magpie::ArgumentMatcher.3pm.gz
/usr/share/man/man3/Test::Magpie::Inspect.3pm.gz
/usr/share/man/man3/Test::Magpie::Invocation.3pm.gz
/usr/share/man/man3/Test::Magpie::Meta::Class.3pm.gz
/usr/share/man/man3/Test::Magpie::Mock.3pm.gz
/usr/share/man/man3/Test::Magpie::Role::HasMock.3pm.gz
There is 6 files more in these RPM.

 
ICM