Группа :: Разработка/Perl
Пакет: perl-Test-Time
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Текущая версия: 0.092-alt1
Время сборки: 10 июня 2022, 08:07 ( 94.0 недели назад )
Размер архива: 58.25 Kb
Домашняя страница: http://search.cpan.org/dist/Test-Time/
Лицензия: perl
О пакете: Overrides the time() and sleep() core functions for testing
Описание:
Список всех майнтейнеров, принимавших участие
в данной и/или предыдущих сборках пакета: Список rpm-пакетов, предоставляемый данным srpm-пакетом:
ACL:
Время сборки: 10 июня 2022, 08:07 ( 94.0 недели назад )
Размер архива: 58.25 Kb
Домашняя страница: http://search.cpan.org/dist/Test-Time/
Лицензия: perl
О пакете: 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' 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
Текущий майнтейнер: 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
Список всех майнтейнеров, принимавших участие
в данной и/или предыдущих сборках пакета: Список rpm-пакетов, предоставляемый данным srpm-пакетом:
- perl-Test-Time