GNU bug report logs -
#63894
[PATCH] Add SpamAssassin, Debbugs dependencies
Previous Next
Reported by: Antero Mejr <antero <at> mailbox.org>
Date: Sun, 4 Jun 2023 17:37:01 UTC
Severity: normal
Tags: patch
Done: "Danny Milosavljevic" <dannym <at> scratchpost.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
* gnu/packages/perl-check.scm (perl-test-mockrandom): New variable.
---
gnu/packages/perl-check.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/gnu/packages/perl-check.scm b/gnu/packages/perl-check.scm
index 156562eaa3..5bc04a1cdd 100644
--- a/gnu/packages/perl-check.scm
+++ b/gnu/packages/perl-check.scm
@@ -939,6 +939,33 @@ (define-public perl-test-mockobject
the behavior, just the input and the output.")
(license perl-license)))
+(define-public perl-test-mockrandom
+ (package
+ (name "perl-test-mockrandom")
+ (version "1.01")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://cpan/authors/id/D/DA/DAGOLDEN/Test-MockRandom-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "1q6c474ya9najgj4wzgj0waj56ykrj3fxhgvkb1ylpgwhh6r6516"))))
+ (build-system perl-build-system)
+ (home-page "https://metacpan.org/release/Test-MockRandom")
+ (synopsis
+ "Replaces random number generation with non-random number generation")
+ (description
+ "This module can test routines that manipulate random numbers by
+providing a known output from @code{rand}. Given a list of seeds with
+@code{srand}, it will return each in turn. After seeded random numbers are
+exhausted, it will always return 0. Seed numbers must be of a form that
+meets the expected output from @code{rand} as called with no arguments: they
+must be between 0 (inclusive) and 1 (exclusive). In order to facilitate
+generating and testing a nearly-one number, this module exports the function
+@code{oneish}, which returns a number just fractionally less than one.")
+ (license asl2.0)))
+
(define-public perl-test-mocktime
(package
(name "perl-test-mocktime")
--
2.39.2
This bug report was last modified 149 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.