| 1 |
Source: libtest-mockdatetime-perl |
| 2 |
Maintainer: Debian Perl Group <[email protected]> |
| 3 |
Uploaders: Alexandre Mestiashvili <[email protected]> |
| 4 |
Section: perl |
| 5 |
Testsuite: autopkgtest-pkg-perl |
| 6 |
Priority: optional |
| 7 |
Build-Depends: debhelper-compat (= 13) |
| 8 |
Build-Depends-Indep: libdatetime-format-dateparse-perl <!nocheck>, |
| 9 |
libdatetime-perl <!nocheck>, |
| 10 |
perl |
| 11 |
Standards-Version: 4.5.1 |
| 12 |
Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libtest-mockdatetime-perl |
| 13 |
Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libtest-mockdatetime-perl.git |
| 14 |
Homepage: https://metacpan.org/release/Test-MockDateTime |
| 15 |
|
| 16 |
Package: libtest-mockdatetime-perl |
| 17 |
Architecture: all |
| 18 |
Depends: ${misc:Depends}, |
| 19 |
${perl:Depends}, |
| 20 |
libdatetime-format-dateparse-perl, |
| 21 |
libdatetime-perl |
| 22 |
Description: module to mock DateTime->now calls during tests |
| 23 |
Getting the current time sometimes is not very helpful for testing scenarios. |
| 24 |
Instead, if you could obtain a known value during the runtime of a testcase |
| 25 |
will make your results predictable. |
| 26 |
. |
| 27 |
The Test::MockDateTime module allows faking a given date and time for the |
| 28 |
runtime of a subsequent code block. By default the on keyword is exported |
| 29 |
into the namespace of the test file. The date to get mocked must be in a |
| 30 |
format that is recognized by DateTime::Format::DateParse. |