Group :: Desenvolvimento/Perl
RPM: perl-Test-Time
Principal Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
A versão atual: 0.092-alt1
Data da compilação: 10 junho 2022, 08:07 ( 100.2 weeks ago )
Tamanho:: 58.25 Kb
Home page: http://search.cpan.org/dist/Test-Time/
Licença: perl
Sumário: Overrides the time() and sleep() core functions for testing
Descrição:
Lista dos contribuidores Lista dos rpms provida por esta srpm:
ACL:
Data da compilação: 10 junho 2022, 08:07 ( 100.2 weeks ago )
Tamanho:: 58.25 Kb
Home page: http://search.cpan.org/dist/Test-Time/
Licença: perl
Sumário: Overrides the time() and sleep() core functions for testing
Descrição:
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
Mantenedor currente: Igor Vlasenko 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
Lista dos contribuidores Lista dos rpms provida por esta srpm:
- perl-Test-Time