Package Info

perl-Test-Time


Overrides the time() and sleep() core functions for testing


Development/Libraries/Perl

Test::Time can be used to test modules that deal with time. Once you 'use' this module, all references to 'time' and 'sleep' will be internalized. You can set custom time by passing time => number after the 'use' statement:

use Test::Time time => 1;

my $now = time;    # $now is equal to 1
sleep 300;         # returns immediately, displaying a note
my $then = time;   # $then equals to 301

License: Artistic-1.0 or GPL-1.0+
URL: http://search.cpan.org/dist/Test-Time/

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.05-bp155.2.10 info GA Release 2023-05-17 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Test-Time
0.05-bp154.1.22 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Test-Time
0.05-bp153.1.15 info GA Release 2021-03-06 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Test-Time
0.05-bp152.3.17 info GA Release 2020-04-16 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Test-Time
0.05-bp151.3.1 info GA Release 2019-07-16 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Test-Time
0.05-bp151.2.14 info GA Release 2019-05-18 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Test-Time
0.05-bp150.2.4 info GA Release 2018-07-30 15
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Test-Time