How to Install and Uninstall libmock-quick-perl Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 18,2024

1. Install "libmock-quick-perl" package

This guide covers the steps necessary to install libmock-quick-perl on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install libmock-quick-perl

2. Uninstall "libmock-quick-perl" package

Please follow the steps below to uninstall libmock-quick-perl on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove libmock-quick-perl $ sudo apt autoclean && sudo apt autoremove

3. Information about the libmock-quick-perl package on Ubuntu 21.10 (Impish Indri)

Package: libmock-quick-perl
Architecture: all
Version: 1.111-1
Priority: optional
Section: universe/perl
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Perl Group
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 75
Depends: perl, libexporter-declare-perl
Filename: pool/universe/libm/libmock-quick-perl/libmock-quick-perl_1.111-1_all.deb
Size: 31200
MD5sum: c0f2ac8345a009a675aef5e954bfca29
SHA1: 66400238bf44b30a25ee7748aef48852b0c45b98
SHA256: 145ca590b904dd8ed0496ba5c7d215eee8031cd9fd94ea3aafada317b304b84d
SHA512: fb8cb173ea4b399ca9306325ff895c820bbf3858c520100f6c4ff7a95b49ef2c620bc0d73895642fafbf456184128a8d8be1c018e25b2c37522b5370e875ea9c
Homepage: https://metacpan.org/release/Mock-Quick
Description-en: Perl module for quick side-effect free mocking of objects and classes
Mock::Quick is here to solve the current problems with Mocking libraries.
.
There are a couple Mocking libraries available on CPAN. The primary
problems with these libraries include verbose syntax, and most
importantly side-effects. Some Mocking libraries expect you to mock a
specific class, and will unload it then redefine it. This is
particularly a problem if you only want to override a class on a
lexical level.
.
Mock::Quick provides a declarative mocking interface that results in a
very concise, but clear syntax. There are separate facilities for
mocking object instances, and classes. You can quickly create an
instance of an object with custom attributes and methods. You can also
quickly create an anonymous class, optionally inhereting from another,
with whatever methods you desire.
.
Mock::Quick also provides a tool that provides an OO interface to
overriding methods in existing classes. This tool also allows for the
restoration of the original class methods. Best of all this is a
localized tool, when your control object falls out of scope the original
class is restored.
Description-md5: e9998ff2e7f48e393aec028b23b17070