Debian Codegraph @

debian/control

raw symbols SCIP
1 Source: libtest-mockrandom-perl
2 Section: perl
3 Priority: optional
4 Build-Depends: debhelper-compat (= 13)
5 Build-Depends-Indep: perl
6 Maintainer: Debian Perl Group <[email protected]>
7 Uploaders: Salvatore Bonaccorso <[email protected]>
8 Standards-Version: 3.9.5
9 Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libtest-mockrandom-perl.git
10 Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libtest-mockrandom-perl
11 Homepage: https://metacpan.org/release/Test-MockRandom
12 Testsuite: autopkgtest-pkg-perl
13
14 Package: libtest-mockrandom-perl
15 Architecture: all
16 Depends: ${misc:Depends}, ${perl:Depends}
17 Multi-Arch: foreign
18 Description: module to replace random number generation with non-random number generation
19 The Test::MockRandom module replaces random number generation with non-random
20 number generation.
21 .
22 This perhaps ridiculous-seeming module was created to test routines that
23 manipulate random numbers by providing a known output from rand. Given a
24 list of seeds with srand, it will return each in turn. After seeded
25 random numbers are exhausted, it will always return 0. Seed numbers must
26 be of a form that meets the expected output from rand as called with no
27 arguments -- i.e. they must be between 0 (inclusive) and 1 (exclusive).
28 In order to facilitate generating and testing a nearly-one number, this
29 module exports the function oneish, which returns a number just
30 fractionally less than one.
31 .
32 Depending on how this module is called with use, it will export rand to
33 a specified package (e.g. a class being tested) effectively overriding
34 and intercepting calls in that package to the built-in rand. It can also
35 override rand in the current package or even globally. In all of these
36 cases, it also exports srand and oneish to the current package in order
37 to control the output of rand.