SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-Test-Mimic rpm build for : OpenSuSE. For other distributions click perl-Test-Mimic.

Name : perl-Test-Mimic
Version : 0.009007 Vendor : obs://build_opensuse_org/home:M0ses
Release : 7.1 Date : 2016-12-01 15:13:13
Group : Development/Libraries/Perl Source RPM : perl-Test-Mimic-0.009007-7.1.src.rpm
Size : 0.02 MB
Packager : (none)
Summary : Perl module for automatic package and object mocking via recorded data.
Description :
Test::Mimic allows one to easily mock a package by first recording its
behavior and then playing it back. All that is required is to use
Test::Mimic prior to loading the real packages and then run the desired
program. The first run will be the recording phase and your program should
behave normally. Subsequent runs will use the recorded data to simulate the
mimicked packages. This is the playback phase.

* Test::Mimic->import($preferences)

The $preferences hash reference passed to import is fairly simply and the
majority of its structure can be deduced from the synopsis above. Several
of the elements themselves, however, require explanation.

\'save\' => a directory name where recorded data should be written/read
from. The directory need not exist.

\'string\' => a reference to a subroutine that accepts a single argument
and returns it in a stringified form. It should minimally handle
non-reference scalars, array references, hash references and references
to scalars.

\'destring\' => a reference to a subroutine that is the inverse of the
\'string\' subroutine. For example, is_deeply( $x,
$preferences->{\'destring\'}->( $preferences->{\'string\'}->($x) ) ) from the
Test::More module should pass.

\'key\' => a reference to a subroutine that accepts a reference to an array
of arguments and returns a hash key based upon them. It is VITALLY
IMPORTANT that you run Test::Mimic::Library::get_id on any argument
before examining its state. See the documentation for
Test::Mimic::Library for more information.

\'monitor_args\' => a reference to a subroutine that accepts a reference to
an array of arguments and begins recording the desired ones. You will
probably want to use Test::Mimic::Library::monitor. Returns a scalar that
will later be passed to the subroutine keyed by \'play_args\'.

\'play_args\' => a reference to a subroutine that accepts first a reference
to an array of arguments and then the scalar returned by the subroutine
keyed by \'monitor_args\'. It should hijack the desired arguments. You will
probably want to apply the soon to be written
Test::Mimic::Library::hijack.

\'scalars\' => a reference to an array of package scalar names that you
wish to record.

\'key\', \'monitor_args\', and \'play_args\' can be repeated at several levels
of the hash. The most specific one possible will be used in each case.
Also, all subroutines, arrays and hashes in a package will be recorded.

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/home:/M0ses:/Perl/SLE_12_SP2/noarch

Content of RPM  Provides Requires

Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server

Provides :
perl(Test::Mimic)
perl-Test-Mimic

Requires :
perl(:MODULE_COMPAT_5.18.2)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
perl(Test::Mimic::Library)
perl(Test::Mimic::Generator)
perl(Test::Mimic::Recorder)
rpmlib(PayloadIsLzma) <= 4.4.6-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.18.2/Test
/usr/lib/perl5/vendor_perl/5.18.2/Test/Mimic.pm
/usr/lib/perl5/vendor_perl/5.18.2/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-Test-Mimic
/usr/share/doc/packages/perl-Test-Mimic/Changes
/usr/share/doc/packages/perl-Test-Mimic/README
/usr/share/man/man3/Test::Mimic.3pm.gz

 
ICM