Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help

The search service can find package by either name (apache), provides(webserver), absolute file names (/usr/bin/apache), binaries (gprof) or shared libraries (libXm.so.2) in standard path. It does not support multiple arguments yet...

The System and Arch are optional added filters, for example System could be "redhat", "redhat-7.2", "mandrake" or "gnome", Arch could be "i386" or "src", etc. depending on your system.

System Arch

RPM resource perl-Test-MockDateTime

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. Why another Date Mocker? I wanted something simple with a very concise usage pattern and a mocked date should only exist and stay constant inside a scope. After leaving the scope the current time should be back. This lead to this tiny module. This simple 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. on '2013-01-02 03:04:05', sub { ... }; is basically the same as { my $now = DateTime::Format::DateParse->parse_datetime( '2013-01-02 03:04:05' ); local *DateTime::now = sub { $now->clone }; ... everything from code block above } A drawback when relying on this module is that you must know that the module you are testing uses 'DateTime->now' to obtain the current time. =cut

Found 1 sites for perl-Test-MockDateTime

Found 5 RPM for perl-Test-MockDateTime

PackageSummaryDistributionDownload
perl-Test-MockDateTime-0.02-1.18.noarch.htmlMock Datetime->Now Calls During TestsOpenSuSE Tumbleweed for noarchperl-Test-MockDateTime-0.02-1.18.noarch.rpm
perl-Test-MockDateTime-0.02-1.17.noarch.htmlMock Datetime->Now Calls During TestsOpenSuSE Ports Tumbleweed for noarchperl-Test-MockDateTime-0.02-1.17.noarch.rpm
Mock Datetime->Now Calls During Testsperl-Test-MockDateTime-0.02-1.8.noarch.rpm
perl-Test-MockDateTime-0.02-bp156.2.1.noarch.htmlMock Datetime->Now Calls During TestsOpenSuSE Leap 15.6 for noarchperl-Test-MockDateTime-0.02-bp156.2.1.noarch.rpm
perl-Test-MockDateTime-0.02-bp155.1.4.noarch.htmlMock Datetime->Now Calls During TestsOpenSuSE Leap 15.5 for noarchperl-Test-MockDateTime-0.02-bp155.1.4.noarch.rpm

Generated by rpm2html 1.6

Fabrice Bellet