How to Install and Uninstall libtest-mockmodule-perl Package on Ubuntu 21.10 (Impish Indri)

Last updated: September 20,2024

1. Install "libtest-mockmodule-perl" package

Please follow the instructions below to install libtest-mockmodule-perl on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install libtest-mockmodule-perl

2. Uninstall "libtest-mockmodule-perl" package

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

$ sudo apt remove libtest-mockmodule-perl $ sudo apt autoclean && sudo apt autoremove

3. Information about the libtest-mockmodule-perl package on Ubuntu 21.10 (Impish Indri)

Package: libtest-mockmodule-perl
Architecture: all
Version: 0.176.0-1
Priority: extra
Section: universe/perl
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Perl Group
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 36
Depends: perl:any, libsuper-perl
Filename: pool/universe/libt/libtest-mockmodule-perl/libtest-mockmodule-perl_0.176.0-1_all.deb
Size: 13976
MD5sum: e7f0559de74cf8688e1ea2dc0dc42bc7
SHA1: a861ce61f8f7ae4574e49446c54adecb9429df1d
SHA256: 378e90433796a5184bafd55472578652045c5c5e1698d9798d6df9faa21a79bc
SHA512: 0e8fe247e5163c0d0d9d2f3fd5a2d85d4e83a6d4b220622ff3573037c2d770c4cb169be693ac4a4381c21a09ee1c07b1c5b27754bdbe4087afa0e9308af34380
Homepage: https://metacpan.org/release/Test-MockModule
Description-en: Perl module to override subroutines in a module for unit testing
Test::MockModule lets you temporarily redefine subroutines in other
packages for the purposes of unit testing.
.
A Test::MockModule object is set up to mock subroutines for a given
module. The object remembers the original subroutine so it can be
easily restored. This happens automatically when all MockModule
objects for the given module go out of scope, or when you unmock()
the subroutine.
Description-md5: ed61c3c03517795a6ff4b2cebab46e3c