How to Install and Uninstall libdbd-mock-perl Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 17,2024

1. Install "libdbd-mock-perl" package

This guide let you learn how to install libdbd-mock-perl on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install libdbd-mock-perl

2. Uninstall "libdbd-mock-perl" package

This tutorial shows how to uninstall libdbd-mock-perl on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove libdbd-mock-perl $ sudo apt autoclean && sudo apt autoremove

3. Information about the libdbd-mock-perl package on Ubuntu 21.10 (Impish Indri)

Package: libdbd-mock-perl
Architecture: all
Version: 1.59-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: 135
Depends: perl:any, libdbi-perl
Filename: pool/universe/libd/libdbd-mock-perl/libdbd-mock-perl_1.59-1_all.deb
Size: 45084
MD5sum: f097cb7bc6ce0c06071bc9fc18538647
SHA1: d134893dc31b9726806ccef7b2372c6475a8e642
SHA256: 541e5797685c8b2243afc164d6c8678838b9dfd7b9ed8d6938a7ca184d6cfe32
SHA512: 757f9c1a7d0d06e18fb890b29f9d02cf2af64e136fc4a535c99027d4a6418b995fdc03ee678ed8d32bce84a31a48e162941ababdcf020fd52faa0913950dcc00
Homepage: https://metacpan.org/release/DBD-Mock
Description-en: Mock database driver for testing
Testing with databases can be tricky. If you are developing a system married
to a single database then you can make some assumptions about your
environment and ask the user to provide relevant connection information. But
if you need to test a framework that uses DBI, particularly a framework that
uses different types of persistence schemes, then it may be more useful to
simply verify what the framework is trying to do -- ensure the right SQL is
generated and that the correct parameters are bound. DBD::Mock makes it easy
to just modify your configuration (presumably held outside your code) and
just use it instead of DBD::Foo (like DBD::Pg or DBD::mysql) in your
framework.
Description-md5: b0d015475e873bc48ff3b0a8968cbfce