- Name: perl-Test-Time
- Version: 0.04
- Release: 1
- Epoch:
- Group: Development/Languages/Perl
- License: GPL v1+ or Artistic
- Url: http://search.cpan.org/dist/Test-Time/
- Summary: Test::Time - Overrides the time() and sleep() core functions for testing
- Architecture: noarch
- Size: 47209
- Distribution: PLD 3.0 (Th)
- Vendor: PLD
- Packager: PLD bug tracking system ( http://bugs.pld-linux.org/ )
Description:
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
- OptFlags:
- Cookie: ep09-pld 1434280941
- Buildhost: ep09-pld