perl-Test-MockRandom-1.00-10pclos2011.noarch.rpm


Advertisement

Description

perl-Test-MockRandom - Override randoms with non-random behavior

Property Value
Distribution PCLinuxOS
Repository PCLinuxOS x86_64
Package filename perl-Test-MockRandom-1.00-10pclos2011.noarch.rpm
Package name perl-Test-MockRandom
Package version 1.00
Package release 10pclos2011
Package architecture noarch
Package type rpm
Homepage -
License -
Maintainer -
Download size 58.60 KB
Installed size 58.60 KB
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'. See the /USAGE manpage for details.
Alternatively, this module can be used to generate objects, with each
object maintaining its own distinct seed array.

Alternatives

Package Version Architecture Repository
perl-Test-MockRandom - - -

Requires

Name Value
perl(Carp) -
perl-base >= 5.12.3
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsLzma) <= 4.4.6-1
rpmlib(VersionedDependencies) <= 3.0.3-1

Provides

Name Value
perl(Test::MockRandom) = 1.0.0
perl-Test-MockRandom = 1.00-10pclos2011

Download

Type URL
Mirror ftp.nluug.nl
Binary Package perl-Test-MockRandom-1.00-10pclos2011.noarch.rpm
Source Package perl-Test-MockRandom-1.00-10pclos2011.src.rpm

Install Howto

  1. Enable PCLinuxOS x86_64 repository in /etc/apt/sources.list:
    rpm http://ftp.nluug.nl/pub/os/Linux/distr/pclinuxos/pclinuxos/apt/ pclinuxos/64bit x86_64
  2. Update the package index:
    # apt-get update
  3. Install perl-Test-MockRandom rpm package:
    # apt-get install perl-Test-MockRandom

See Also

Package Description
perl-Test-Most-0.21-10pclos2011.noarch.rpm Most commonly needed test functions and features
perl-Test-NeedsDisplay-1.07-1pclos2015.noarch.rpm Ensure that tests needing a display have one
perl-Test-NoWarnings-0.084-10pclos2011.noarch.rpm Make sure you didn't emit any warnings while testing
perl-Test-Number-Delta-1.03-10pclos2011.noarch.rpm Test-Number-Delta - Perl module
perl-Test-Object-0.07-10pclos2011.x86_64.rpm Thoroughly testing objects via registered handlers
perl-Test-Output-0.16-10pclos2011.noarch.rpm Utilities to test STDOUT and STDERR messages
perl-Test-POE-Client-TCP-1.04-10pclos2011.noarch.rpm A POE Component providing TCP client services for test cases
perl-Test-POE-Server-TCP-1.08-10pclos2011.noarch.rpm A POE Component providing TCP server services for test cases
perl-Test-Parser-1.9-10pclos2011.x86_64.rpm Base class for parsing log files from test runs, and displays in an XML syntax
perl-Test-Perl-Critic-1.01-10pclos2011.noarch.rpm Use Perl::Critic in test programs
perl-Test-Pod-1.40-10pclos2011.noarch.rpm Check for POD errors in files
perl-Test-Pod-Coverage-1.08-10pclos2011.noarch.rpm Check for POD coverage in your Perl modules
perl-Test-Prereq-1.037-10pclos2011.noarch.rpm Check if Makefile.PL has the right pre-requisites
perl-Test-Program-0.10-10pclos2011.noarch.rpm Testing tools for Perl programs
perl-Test-Refcount-0.05-10pclos2011.noarch.rpm Assert reference counts on objects
Advertisement
Advertisement