perl-DBD-Mock-1.450.0-3-omv2015.0.noarch.rpm


Advertisement

Description

perl-DBD-Mock - Mock database driver for testing

Property Value
Distribution OpenMandriva Cooker
Repository OpenMandriva Contrib Release x86_64
Package name perl-DBD-Mock
Package version 1.450.0
Package release 3-omv2015.0
Package architecture noarch
Package type rpm
Installed size 100.03 KB
Download size 43.30 KB
Official Mirror abf-downloads.openmandriva.org
Testing with databases can be tricky. If you are developing a system
married to a single database then you can make some assumptions about your
environment and ask the user to provide relevant connection information.
But if you need to test a framework that uses DBI, particularly a framework
that uses different types of persistence schemes, then it may be more
useful to simply verify what the framework is trying to do -- ensure the
right SQL is generated and that the correct parameters are bound.
'DBD::Mock' makes it easy to just modify your configuration (presumably
held outside your code) and just use it instead of 'DBD::Foo' (like the
DBD::Pg manpage or the DBD::mysql manpage) in your framework.
There is no distinct area where using this module makes sense. (Some people
may successfully argue that this is a solution looking for a problem...)
Indeed, if you can assume your users have something like the DBD::AnyData
manpage or the DBD::SQLite manpage or if you do not mind creating a
dependency on them then it makes far more sense to use these legitimate
driver implementations and test your application in the real world -- at
least as much of the real world as you can create in your tests...
And if your database handle exists as a package variable or something else
easily replaced at test-time then it may make more sense to use the
Test::MockObject manpage to create a fully dynamic handle. There is an
excellent article by chromatic about using the Test::MockObject manpage in
this and other ways, strongly recommended. (See the SEE ALSO manpage for a
link)

Alternatives

Package Version Architecture Repository
perl-DBD-Mock-1.450.0-3-omv2015.0.noarch.rpm 1.450.0 noarch OpenMandriva Contrib Release
perl-DBD-Mock - - -

Requires

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

Provides

Name Value
perl(DBD::Mock) = 1.450.0
perl(DBD::Mock::Pool) -
perl(DBD::Mock::Pool::db) -
perl(DBD::Mock::Session) -
perl(DBD::Mock::StatementTrack) -
perl(DBD::Mock::StatementTrack::Iterator) -
perl(DBD::Mock::db) -
perl(DBD::Mock::dr) -
perl(DBD::Mock::st) -
perl-DBD-Mock = 1.450.0-3

Download

Type URL
Binary Package perl-DBD-Mock-1.450.0-3-omv2015.0.noarch.rpm
Source Package perl-DBD-Mock-1.450.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-DBD-Mock rpm package:
    # urpmi perl-DBD-Mock

Files

Path
/usr/lib/perl5/vendor_perl/5.20.1/DBD/Mock.pm
/usr/lib/perl5/vendor_perl/5.20.1/DBD/Mock/Pool.pm
/usr/lib/perl5/vendor_perl/5.20.1/DBD/Mock/Session.pm
/usr/lib/perl5/vendor_perl/5.20.1/DBD/Mock/StatementTrack.pm
/usr/lib/perl5/vendor_perl/5.20.1/DBD/Mock/db.pm
/usr/lib/perl5/vendor_perl/5.20.1/DBD/Mock/dr.pm
/usr/lib/perl5/vendor_perl/5.20.1/DBD/Mock/st.pm
/usr/lib/perl5/vendor_perl/5.20.1/DBD/Mock/Pool/db.pm
/usr/lib/perl5/vendor_perl/5.20.1/DBD/Mock/StatementTrack/Iterator.pm
/usr/share/doc/perl-DBD-Mock/Changes
/usr/share/doc/perl-DBD-Mock/README
/usr/share/man/man3/DBD::Mock.3pm.xz

See Also

Package Description
perl-DBD-Multi-0.180.0-3-omv2015.0.noarch.rpm Manage Multiple Data Sources with Failover and Load Balancing
perl-DBD-Pg-3.3.0-3-omv2015.0.x86_64.rpm PostgreSQL database driver for the DBI module
perl-DBD-PgSPI-0.20.0-8-omv2015.0.x86_64.rpm PL/Perl PostgreSQL database driver for the DBI module
perl-DBD-Sybase-1.150.0-3-omv2015.0.x86_64.rpm Sybase database driver for the DBI module
perl-DBD-XBase-1.50.0-3-omv2015.0.noarch.rpm Module for dealing with XBase files
perl-DBI-Shell-11.950.0-5-omv2015.0.noarch.rpm Interactive command shell for the DBI
perl-DBIx-Class-0.82.700-4-omv2015.0.noarch.rpm Extensible and flexible object <-> relational mapper
perl-DBIx-Class-Candy-0.2.0-5-omv2015.0.noarch.rpm Create sugar for your favorite ORM, DBIx::Class
perl-DBIx-Class-HTMLWidget-0.160.0-5-omv2015.0.noarch.rpm Like FromForm but with DBIx::Class and HTML::Widget
perl-DBIx-Class-IntrospectableM2M-0.1.1-5-omv2015.0.noarch.rpm Introspect many-to-many shortcuts
perl-DBIx-ContextualFetch-1.30.0-7-omv2015.0.noarch.rpm Add contextual fetches to DBI
perl-DBIx-DBSchema-0.390.0-6-omv2015.0.noarch.rpm Database-independent schema objects
perl-DBIx-Recordset-0.260.0-5-omv2015.0.noarch.rpm Perl extension for DBI recordsets
perl-DBIx-SearchBuilder-1.590.0-5-omv2015.0.noarch.rpm Encapsulate SQL queries and rows in simple perl object
perl-DBM-Deep-2.1.100-3-omv2015.0.noarch.rpm A pure perl multi-level hash/array DBM that supports transactions
Advertisement
Advertisement