SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

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

Name : perl-Test-Magpie
Version : 0.11 Vendor : obs://build_opensuse_org/devel:kanku
Release : 7.606 Date : 2024-10-01 04:53:44
Group : Development/Libraries/Perl Source RPM : perl-Test-Magpie-0.11-7.606.src.rpm
Size : 0.08 MB
Packager : (none)
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 the Test::Magpie::Mock manpage 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 the
Test::Magpie::ArgumentMatcher manpage for the juicy details.

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

Content of RPM  Provides Requires

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

Provides :
perl(Test::Magpie)
perl-Test-Magpie

Requires :
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(PayloadIsZstd) <= 5.4.18-1


Content of RPM :
/usr/share/doc/perl-Test-Magpie
/usr/share/doc/perl-Test-Magpie/Changes
/usr/share/doc/perl-Test-Magpie/LICENSE
/usr/share/doc/perl-Test-Magpie/README
/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
/usr/share/man/man3/Test::Magpie::Role::MethodCall.3pm.gz
/usr/share/man/man3/Test::Magpie::Stub.3pm.gz
/usr/share/man/man3/Test::Magpie::Types.3pm.gz
/usr/share/man/man3/Test::Magpie::Util.3pm.gz
/usr/share/man/man3/Test::Magpie::Verify.3pm.gz
/usr/share/man/man3/Test::Magpie::When.3pm.gz
/usr/share/perl5/vendor_perl/Test
/usr/share/perl5/vendor_perl/Test/Magpie
/usr/share/perl5/vendor_perl/Test/Magpie.pm
/usr/share/perl5/vendor_perl/Test/Magpie/ArgumentMatcher.pm
/usr/share/perl5/vendor_perl/Test/Magpie/Inspect.pm
/usr/share/perl5/vendor_perl/Test/Magpie/Invocation.pm
/usr/share/perl5/vendor_perl/Test/Magpie/Meta
/usr/share/perl5/vendor_perl/Test/Magpie/Meta/Class.pm
/usr/share/perl5/vendor_perl/Test/Magpie/Mock.pm
/usr/share/perl5/vendor_perl/Test/Magpie/Role
/usr/share/perl5/vendor_perl/Test/Magpie/Role/HasMock.pm
/usr/share/perl5/vendor_perl/Test/Magpie/Role/MethodCall.pm
/usr/share/perl5/vendor_perl/Test/Magpie/Stub.pm
There is 4 files more in these RPM.

 
ICM