Skip to content
Sections
>> Trisquel >> パッケージ >> aramo >> perl >> libtest-mockdatetime-perl
nabia  ] [  aramo  ]
[ ソース: libtest-mockdatetime-perl  ]

パッケージ: libtest-mockdatetime-perl (0.02-2)

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.

その他の libtest-mockdatetime-perl 関連パッケージ

  • 依存
  • 推奨
  • 提案

libtest-mockdatetime-perl のダウンロード

すべての利用可能アーキテクチャ向けのダウンロード
アーキテクチャ パッケージサイズ インストールサイズ ファイル
all 6.0 kB20 kB [ファイル一覧]