mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: Add Test-MockTime.
* gnu/packages/perl.scm (perl-test-mocktime): New variable.
This commit is contained in:
parent
1e507297e9
commit
9bc8671846
1 changed files with 22 additions and 0 deletions
|
@ -1881,6 +1881,28 @@ (define-public perl-test-harness
|
|||
automatically aggregated and output to STDOUT.")
|
||||
(license (package-license perl))))
|
||||
|
||||
(define-public perl-test-mocktime
|
||||
(package
|
||||
(name "perl-test-mocktime")
|
||||
(version "0.13")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (string-append "mirror://cpan/authors/id/D/DD/DDICK/"
|
||||
"Test-MockTime-" version ".tar.gz"))
|
||||
(sha256
|
||||
(base32
|
||||
"0yrqmjg33akannwz2f99rfm7dvvxpzsdj23lsvlvfi4qslrlqfvw"))))
|
||||
(build-system perl-build-system)
|
||||
(home-page "http://search.cpan.org/dist/Test-MockTime")
|
||||
(synopsis "Replaces actual time with simulated time")
|
||||
(description "This module was created to enable test suites to test code
|
||||
at specific points in time. Specifically it overrides localtime, gmtime and
|
||||
time at compile time and then relies on the user supplying a mock time via
|
||||
set_relative_time, set_absolute_time or set_fixed_time to alter future calls
|
||||
to gmtime,time or localtime.")
|
||||
(license (package-license perl))))
|
||||
|
||||
(define-public perl-test-most
|
||||
(package
|
||||
(name "perl-test-most")
|
||||
|
|
Loading…
Reference in a new issue