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

Last updated: December 28,2024

1. Install "libtest-mockdatetime-perl" package

In this section, we are going to explain the necessary steps to install libtest-mockdatetime-perl on Ubuntu 21.10 (Impish Indri)

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

2. Uninstall "libtest-mockdatetime-perl" package

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

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

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

Package: libtest-mockdatetime-perl
Architecture: all
Version: 0.02-2
Priority: optional
Section: universe/perl
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Perl Group
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 20
Depends: perl, libdatetime-format-dateparse-perl, libdatetime-perl
Filename: pool/universe/libt/libtest-mockdatetime-perl/libtest-mockdatetime-perl_0.02-2_all.deb
Size: 6132
MD5sum: ecbb1e78305b27cbde4dbb86ea590ff8
SHA1: 3a03f33e35064d445da6b1eb363c35bdce55f7f0
SHA256: 9fae1ef3eb6677f7a7636b8c85791fd3e57d86077f6ea0e150a062b11b8f5d94
SHA512: 9055d8884ddcc72aeeda08ea1f900d9590a3fe318ff1273fd889fd25cb9e6391806105dd59101cdc852c7801b9f9b9e0ae186f77a16cbfd00df155a64e85792d
Homepage: https://metacpan.org/release/Test-MockDateTime
Description-en: module to mock DateTime->now calls during tests
Getting the current time sometimes is not very helpful for testing scenarios.
Instead, if you could obtain a known value during the runtime of a testcase
will make your results predictable.
.
The Test::MockDateTime module allows faking a given date and time for the
runtime of a subsequent code block. By default the on keyword is exported
into the namespace of the test file. The date to get mocked must be in a
format that is recognized by DateTime::Format::DateParse.
Description-md5: b19879488bf9112458afa6ab6e88e632