Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help Search

perl-Test-Magpie-0.11-1.12 RPM for noarch

From OpenSuSE Ports Tumbleweed for noarch

Name: perl-Test-Magpie Distribution: openSUSE:Factory:zSystems
Version: 0.11 Vendor: openSUSE
Release: 1.12 Build date: Thu Oct 19 19:32:25 2023
Group: Development/Libraries/Perl Build host: s390zl27
Size: 78445 Source RPM: perl-Test-Magpie-0.11-1.12.src.rpm
Packager: https://bugs.opensuse.org
Url: https://metacpan.org/release/Test-Magpie
Summary: Mocking framework with method stubs and behaviour verification
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.

Provides

Requires

License

Artistic-1.0 OR GPL-1.0-or-later

Changelog

* Tue Nov 24 2020 Frank Schreiner <FSchreiner@suse.com>
  - re-run cpanspec
* Mon May 11 2020 Frank Schreiner <FSchreiner@suse.com>
  - initial version of package (0.11)

Files

/usr/lib/perl5/vendor_perl/5.38.0/Test
/usr/lib/perl5/vendor_perl/5.38.0/Test/Magpie
/usr/lib/perl5/vendor_perl/5.38.0/Test/Magpie.pm
/usr/lib/perl5/vendor_perl/5.38.0/Test/Magpie/ArgumentMatcher.pm
/usr/lib/perl5/vendor_perl/5.38.0/Test/Magpie/Inspect.pm
/usr/lib/perl5/vendor_perl/5.38.0/Test/Magpie/Invocation.pm
/usr/lib/perl5/vendor_perl/5.38.0/Test/Magpie/Meta
/usr/lib/perl5/vendor_perl/5.38.0/Test/Magpie/Meta/Class.pm
/usr/lib/perl5/vendor_perl/5.38.0/Test/Magpie/Mock.pm
/usr/lib/perl5/vendor_perl/5.38.0/Test/Magpie/Role
/usr/lib/perl5/vendor_perl/5.38.0/Test/Magpie/Role/HasMock.pm
/usr/lib/perl5/vendor_perl/5.38.0/Test/Magpie/Role/MethodCall.pm
/usr/lib/perl5/vendor_perl/5.38.0/Test/Magpie/Stub.pm
/usr/lib/perl5/vendor_perl/5.38.0/Test/Magpie/Types.pm
/usr/lib/perl5/vendor_perl/5.38.0/Test/Magpie/Util.pm
/usr/lib/perl5/vendor_perl/5.38.0/Test/Magpie/Verify.pm
/usr/lib/perl5/vendor_perl/5.38.0/Test/Magpie/When.pm
/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
/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


Generated by rpm2html 1.8.1

Fabrice Bellet, Sat Mar 9 12:39:58 2024