libtest-mockdatetime-perl
module to mock DateTime->now calls during tests
Description
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.Upload more screenshots
Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.
Upload a screenshotHint: upload an image here from your clipboard with Ctrl-V
Homepage
https://metacpan.org/release/Test-MockDateTime
Install this software package
If the package is available for the distribution you are currently using on your computer then install the software by clicking on…
Install libtest-mockdatetime-perl