Alle Optionen
bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ Quellcode: libtest-mockdatetime-perl  ]

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

Links für libtest-mockdatetime-perl

Screenshot

Debian-Ressourcen:

Quellcode-Paket libtest-mockdatetime-perl herunterladen:

Betreuer:

Externe Ressourcen:

Ähnliche Pakete:

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.

Andere Pakete mit Bezug zu libtest-mockdatetime-perl

  • hängt ab von
  • empfiehlt
  • schlägt vor
  • erweitert

libtest-mockdatetime-perl herunterladen

Download für alle verfügbaren Architekturen
Architektur Paketgröße Größe (installiert) Dateien
all 6,2 kB21,0 kB [Liste der Dateien]