libtest-mockdatetime-perl 0.02-4 source package in Ubuntu
Changelog
libtest-mockdatetime-perl (0.02-4) unstable; urgency=medium [ gregor herrmann ] * Drop debian/upstream/metadata. the Github repo is gone. -- Jelmer Vernooij <email address hidden> Fri, 16 Dec 2022 19:01:47 +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 | |
---|---|---|---|---|
Oracular | release | universe | misc | |
Noble | release | universe | misc | |
Mantic | release | universe | misc | |
Lunar | release | universe | misc |
Downloads
File | Size | SHA-256 Checksum |
---|---|---|
libtest-mockdatetime-perl_0.02-4.dsc | 1.9 KiB | 4a5b55374bfd1418e96015de31122664c7a914fdc8d471701814281251b63f53 |
libtest-mockdatetime-perl_0.02.orig.tar.gz | 9.6 KiB | c6370a58b9f291fc205121caf92a89865451d49559b0163a8dc7e606f34878dc |
libtest-mockdatetime-perl_0.02-4.debian.tar.xz | 2.1 KiB | 7c1aa11803ca286acf4cf59691a06f73bb2fb532430e1e0dcbaf57801e3bf6ea |
Available diffs
- diff from 0.02-3 to 0.02-4 (479 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.