libtest-mockdatetime-perl 0.02-3 source package in Ubuntu
Changelog
libtest-mockdatetime-perl (0.02-3) unstable; urgency=medium [ Debian Janitor ] * Set upstream metadata fields: Bug-Database, Bug-Submit, Repository-Browse. * Update standards version to 4.5.0, no changes needed. * Bump debhelper from old 12 to 13. * Update standards version to 4.5.1, no changes needed. -- Jelmer Vernooij <email address hidden> Sun, 11 Dec 2022 18:18:28 +0000
Upload details
- Uploaded by:
- Debian Perl Group
- Uploaded to:
- Sid
- Original maintainer:
- Debian Perl Group
- Architectures:
- all
- Section:
- misc
- Urgency:
- Medium Urgency
See full publishing history Publishing
Series | Published | Component | Section |
---|
Downloads
File | Size | SHA-256 Checksum |
---|---|---|
libtest-mockdatetime-perl_0.02-3.dsc | 2.2 KiB | e19ecacfe28742985fc8b3d31708c6ef2834e0d73e155e7f5ccdfcf238ef914c |
libtest-mockdatetime-perl_0.02.orig.tar.gz | 9.6 KiB | c6370a58b9f291fc205121caf92a89865451d49559b0163a8dc7e606f34878dc |
libtest-mockdatetime-perl_0.02-3.debian.tar.xz | 2.1 KiB | 4fff766944117ab7c6703ecea6973cdf1e192237fa70600e048152386f975349 |
Available diffs
- diff from 0.02-2 to 0.02-3 (770 bytes)
No changes file available.
Binary packages built by this source
- libtest-mockdatetime-perl: 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.