Package : perl-Test-Time > RPM : perl-Test-Time-0.92.0-1.mga9.src.rpm
Basic items
Name | perl-Test-Time |
Version | 0.92.0 |
Release | 1.mga9 |
URL | https://metacpan.org/release/Test-Time |
Group | Development/Perl |
Summary | Overrides the time() and sleep() core functions for testing |
Size | 57KB |
Arch | noarch |
License | GPL+ or Artistic |
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
"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
Media information
Distribution release | Mageia cauldron |
Media name | core-release |
Media arch | x86_64 |
Advanced items
Source RPM | NOT IN DATABASE ?! |
Build time | 2022-06-10 10:04:48 |
Changelog | View in Sophie |
Files | View in Sophie |
Dependencies | View in Sophie |