perl-Test-MockRandom-1.10.0-3-omv2015.0.noarch.rpm


Advertisement

Description

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

Property Value
Distribution OpenMandriva Lx 3.0
Repository OpenMandriva Contrib Release i586
Package name perl-Test-MockRandom
Package version 1.10.0
Package release 3-omv2015.0
Package architecture noarch
Package type rpm
Installed size 51.47 KB
Download size 22.68 KB
Official Mirror abf-downloads.openmandriva.org
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-1.10.0-3-omv2015.0.noarch.rpm 1.10.0 noarch OpenMandriva Contrib Release
perl-Test-MockRandom - - -

Requires

Name Value
perl(Carp) -
perl(abi) >= 5.20.1

Provides

Name Value
perl(Test::MockRandom) == 1.10.0
perl-Test-MockRandom == 1.10.0-3:2015.0

Download

Type URL
Binary Package perl-Test-MockRandom-1.10.0-3-omv2015.0.noarch.rpm
Source Package perl-Test-MockRandom-1.10.0-3.src.rpm

Install Howto

  1. Enable OpenMandriva Contrib Release repository on Install and Remove Software
  2. Update packages list:
    # urpmi.update -a
  3. Install perl-Test-MockRandom rpm package:
    # urpmi perl-Test-MockRandom

Files

Path
/usr/lib/perl5/vendor_perl/5.20.1/Test/MockRandom.pm
/usr/share/doc/perl-Test-MockRandom/Changes
/usr/share/doc/perl-Test-MockRandom/LICENSE
/usr/share/doc/perl-Test-MockRandom/README
/usr/share/man/man3/Test::MockRandom.3pm.xz

See Also

Package Description
perl-Test-MockTime-0.120.0-5-omv2015.0.noarch.rpm Mock time/localtime for testing
perl-Test-NoTabs-1.300.0-3-omv2015.0.noarch.rpm Check the presence of tabs in your project
perl-Test-POE-Client-TCP-1.120.0-3-omv2015.0.noarch.rpm A POE Component providing TCP client services for test cases
perl-Test-POE-Server-TCP-1.160.0-4-omv2015.0.noarch.rpm A POE Component providing TCP server services for test cases
perl-Test-Parser-1.9-6-omv2015.0.i586.rpm Base class for parsing log files from test runs, and displays in an XML syntax
perl-Test-Perl-Critic-1.20.0-4-omv2015.0.noarch.rpm Use Perl::Critic in test programs
perl-Test-Perl-Critic-Progressive-0.30.0-5-omv2015.0.noarch.rpm Gradually enforce coding standards
perl-Test-Pod-Content-0.0.6-3-omv2015.0.noarch.rpm Test a Pod's content
perl-Test-Pod-Spelling-CommonMistakes-1.0.0-5-omv2015.0.noarch.rpm Checks POD for common spelling mistakes
perl-Test-Portability-Files-0.60.0-3-omv2015.0.noarch.rpm Check file names portability
perl-Test-Prereq-1.38.0-3-omv2015.0.noarch.rpm Check if Makefile.PL has the right pre-requisites
perl-Test-Program-0.10-4-omv2015.0.noarch.rpm Testing tools for Perl programs
perl-Test-Refcount-0.80.0-3-omv2015.0.noarch.rpm Assert reference counts on objects
perl-Test-Regression-0.70.0-3-omv2015.0.noarch.rpm Test library to generate and compare output
perl-Test-Reporter-1.600.0-3-omv2015.0.noarch.rpm Sends test results to cpan-testers
Advertisement
Advertisement