libtest-mockrandom-perl_1.01-1_all.deb


Advertisement

Description

libtest-mockrandom-perl - module to replace random number generation with non-random number generation

Property Value
Distribution Debian 10 (Buster)
Repository Debian Main i386
Package filename libtest-mockrandom-perl_1.01-1_all.deb
Package name libtest-mockrandom-perl
Package version 1.01
Package release 1
Package architecture all
Package type deb
Category devel::lang:perl devel::library implemented-in::perl perl role::shared-lib
Homepage https://metacpan.org/release/Test-MockRandom/
License -
Maintainer Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
Download size 17.72 KB
Installed size 73.00 KB
The Test::MockRandom module replaces random number generation with non-random
number generation.
This perhaps ridiculous-seeming module was created to test routines that
manipulate random numbers by providing a known output from rand. Given a
list of seeds with 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 rand as called with no
arguments -- i.e. 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 oneish, which returns a number just
fractionally less than one.
Depending on how this module is called with use, it will export rand to
a specified package (e.g. a class being tested) effectively overriding
and intercepting calls in that package to the built-in rand. It can also
override rand in the current package or even globally. In all of these
cases, it also exports srand and oneish to the current package in order
to control the output of rand.

Alternatives

Package Version Architecture Repository
libtest-mockrandom-perl_1.01-1_all.deb 1.01 all Debian Main
libtest-mockrandom-perl - - -

Requires

Name Value
perl -

Download

Type URL
Mirror ftp.br.debian.org
Binary Package libtest-mockrandom-perl_1.01-1_all.deb
Source Package libtest-mockrandom-perl

Install Howto

  1. Update the package index:
    # sudo apt-get update
  2. Install libtest-mockrandom-perl deb package:
    # sudo apt-get install libtest-mockrandom-perl

Files

Path
/usr/share/doc/libtest-mockrandom-perl/CONTRIBUTING
/usr/share/doc/libtest-mockrandom-perl/changelog.Debian.gz
/usr/share/doc/libtest-mockrandom-perl/changelog.gz
/usr/share/doc/libtest-mockrandom-perl/copyright
/usr/share/man/man3/Test::MockRandom.3pm.gz
/usr/share/perl5/Test/MockRandom.pm

Changelog

2014-02-13 - Salvatore Bonaccorso <carnil@debian.org>
libtest-mockrandom-perl (1.01-1) unstable; urgency=medium
[ Salvatore Bonaccorso ]
* debian/watch: Update to ignore development releases.
[ gregor herrmann ]
* debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser
field (source stanza).
[ Salvatore Bonaccorso ]
* debian/control: Changed: Replace versioned (build-)dependency on
perl (>= 5.6.0-{12,16}) with an unversioned dependency on perl (as
permitted by Debian Policy 3.8.3).
[ gregor herrmann ]
* debian/control: Changed: (build-)depend on perl instead of perl-
modules.
[ Salvatore Bonaccorso ]
* Email change: Salvatore Bonaccorso -> carnil@debian.org
[ gregor herrmann ]
* Remove alternative (build) dependencies that are already satisfied
in oldstable.
[ Ansgar Burchardt ]
* debian/control: Convert Vcs-* fields to Git.
[ Salvatore Bonaccorso ]
* Change Vcs-Git to canonical URI (git://anonscm.debian.org)
* Change search.cpan.org based URIs to metacpan.org based URIs
[ Axel Beckert ]
* debian/copyright: migrate pre-1.0 format to 1.0 using "cme fix dpkg-
copyright"
[ Salvatore Bonaccorso ]
* Imported Upstream version 1.01
* Update copyright years for upstream files
* Update copyright years for debian/* packaging files
* Refresh License stanza for Apache-2.0.
Drop use of X-Comment field.
Refer to Debian systems in general instead of only Debian GNU/Linux
systems.
* Referesh License stanza for Artistic license.
Drop use of X-Comment field.
Refer to Debian systems in general instead of only Debian GNU/Linux
systems.
* Refresh License stanza for GPL-1+
Drop use of X-Comment field.
Refer to Debian systems in general instead of only Debian GNU/Linux
systems.
Explicitly refer to GPL-1 license text in /usr/share/common-licenses.
* Bump Debhelper compat level to 8.
Adjust versioned Build-Depends on debhelper to (>= 8).
* Refresh docs to install to /usr/share/doc/libtest-mockrandom-perl.
Don't install Todo (removed upstream) and install CONTRIBUTING into doc
directory.
* Declare compliance with Debian Policy 3.9.5
* Convert package to '3.0 (quilt)' source package format
2009-05-31 - Salvatore Bonaccorso <salvatore.bonaccorso@gmail.com>
libtest-mockrandom-perl (1.00-1) unstable; urgency=low
* Initial Release (Closes: #531200).

See Also

Package Description
libtest-mocktime-datecalc-perl_6+ds-1_all.deb testing utility to fake time for Date::Calc
libtest-mocktime-perl_0.17-1_all.deb module to simulate time in tests
libtest-modern-perl_0.013-2_all.deb precision testing for modern perl
libtest-module-used-perl_0.2.6-1_all.deb module for testing whether a module is used
libtest-mojibake-perl_1.3-1_all.deb module to check source for encoding misbehavior
libtest-moose-more-perl_0.050-1_all.deb collection of tools for testing Moose packages
libtest-more-utf8-perl_0.05-1_all.deb enhance Test::More for UTF8-based projects
libtest-most-perl_0.35-1_all.deb Perl module with the most commonly needed test functions and features
libtest-name-fromline-perl_0.13-1_all.deb auto fill test names from caller line
libtest-needs-perl_0.002005-1_all.deb module to skip tests when modules are not available
libtest-needsdisplay-perl_1.07-3_all.deb module to ensure that tests needing a display have one
libtest-net-ldap-perl_0.07-1_all.deb Net::LDAP subclass for testing
libtest-nobreakpoints-perl_0.15-2_all.deb module to test that files do not contain soft breakpoints
libtest-notabs-perl_2.02-1_all.deb module for scanning for hard tabs in files
libtest-nowarnings-perl_1.04-2_all.deb module to make sure you didn't emit any warnings while testing
Advertisement
Advertisement