Source Package: perl-Test-Time (0.092-1.15)
Overrides the time() and sleep() core functions for testing
Test::Time can be used to test modules that deal with time. Once you 'use' this module, all references to 'time', 'localtime' 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
Package information
- Homepage
- [https://metacpan.org/release/Test-Time]
- License
- Artistic-1.0 OR GPL-1.0-or-later
- Mantenedor del paquete downstream
- Desconocido: no consta en la fuente indexada
The following binary packages are built from this source package:
- perl-Test-Time
Overrides the time() and sleep() core functions for testing
