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

Last updated: November 07,2024

1. Install "libtest-mockdbi-perl" package

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

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

2. Uninstall "libtest-mockdbi-perl" package

Here is a brief guide to show you how to uninstall libtest-mockdbi-perl on Ubuntu 21.10 (Impish Indri):

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

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

Package: libtest-mockdbi-perl
Architecture: all
Version: 0.70-1.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: 67
Depends: perl:any, libclone-perl, libdbi-perl, libtest-differences-perl, libtest-mockobject-perl, libtest-warn-perl
Filename: pool/universe/libt/libtest-mockdbi-perl/libtest-mockdbi-perl_0.70-1.1_all.deb
Size: 16248
MD5sum: e790fb573f8c485a75df3c001fc401ff
SHA1: 6ae904c87535391581d0fa28b4fd2d6970f6a3aa
SHA256: b87701f3be1419f52ef78a1841150321ec3a989b9d4256cd5938e16bcc5db4ee
SHA512: 4ce6604f74b903026fe5420e3ea3ea4f8f11e0a50a2e443bd4c19ba3b7426b5edcbc4431360bdc395de7d6851591d017b65f4c6ef561ad2b7439b57233a318d1
Homepage: https://metacpan.org/release/Test-MockDBI
Description-en: mocked DBI interface for testing purposes
Test::MockDBI has a major advantage over DBI::trace()
or DBD::Mock -- Test::MockDBI lets you change how the
mocked DBI functions behave, along with modifying
what data is returned by the mocked DBI functions.
These changes and modifications can be made specific
to particular SQL statement patterns.
.
This ability to modify DBI function behavior and
DBI-returned data makes it easier to test code that has
different branches for different DBI behaviors -- you
can test that a failure within DBI or returned DB data
that is different than normal is processed correctly by
your module or program. If you are taking over a large
code base, Test::MockDBI will help in understanding the
code by allowing you to safely check how the code behaves
under different database conditions without modifying any
databases (production or otherwise).
Description-md5: b44ed63a1d02eb2236cf5f0cd71b9886