all options
bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ Source: libtest-mockdatetime-perl  ]

Package: libtest-mockdatetime-perl (0.02-2)

Links for libtest-mockdatetime-perl

Screenshot

Debian Resources:

Download Source Package libtest-mockdatetime-perl:

Maintainers:

External Resources:

Similar packages:

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.

Other Packages Related to libtest-mockdatetime-perl

  • depends
  • recommends
  • suggests
  • enhances

Download libtest-mockdatetime-perl

Download for all available architectures
Architecture Package Size Installed Size Files
all 6.2 kB21.0 kB [list of files]