| 1 | Source: libmock-quick-perl |
| 2 | Maintainer: Debian Perl Group <[email protected]> |
| 3 | Uploaders: gregor herrmann <[email protected]>, |
| 4 | Xavier Guimard <[email protected]> |
| 5 | Section: perl |
| 6 | Testsuite: autopkgtest-pkg-perl |
| 7 | Priority: optional |
| 8 | Build-Depends: debhelper-compat (= 13), |
| 9 | libmodule-build-perl, |
| 10 | perl |
| 11 | Build-Depends-Indep: libexporter-declare-perl, |
| 12 | libfennec-lite-perl, |
| 13 | libpath-class-perl, |
| 14 | libtest-exception-perl |
| 15 | Standards-Version: 3.9.8 |
| 16 | Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libmock-quick-perl |
| 17 | Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libmock-quick-perl.git |
| 18 | Homepage: https://metacpan.org/release/Mock-Quick |
| 19 | |
| 20 | Package: libmock-quick-perl |
| 21 | Architecture: all |
| 22 | Depends: ${misc:Depends}, |
| 23 | ${perl:Depends}, |
| 24 | libexporter-declare-perl |
| 25 | Description: Perl module for quick side-effect free mocking of objects and classes |
| 26 | Mock::Quick is here to solve the current problems with Mocking libraries. |
| 27 | . |
| 28 | There are a couple Mocking libraries available on CPAN. The primary |
| 29 | problems with these libraries include verbose syntax, and most |
| 30 | importantly side-effects. Some Mocking libraries expect you to mock a |
| 31 | specific class, and will unload it then redefine it. This is |
| 32 | particularly a problem if you only want to override a class on a |
| 33 | lexical level. |
| 34 | . |
| 35 | Mock::Quick provides a declarative mocking interface that results in a |
| 36 | very concise, but clear syntax. There are separate facilities for |
| 37 | mocking object instances, and classes. You can quickly create an |
| 38 | instance of an object with custom attributes and methods. You can also |
| 39 | quickly create an anonymous class, optionally inhereting from another, |
| 40 | with whatever methods you desire. |
| 41 | . |
| 42 | Mock::Quick also provides a tool that provides an OO interface to |
| 43 | overriding methods in existing classes. This tool also allows for the |
| 44 | restoration of the original class methods. Best of all this is a |
| 45 | localized tool, when your control object falls out of scope the original |
| 46 | class is restored. |