perl-DBD-Mock - Mock database driver for testing

Property Value
Distribution Mageia 7
Repository Mageia Core i586
Package filename perl-DBD-Mock-1.450.0-8.mga7.noarch.rpm
Package name perl-DBD-Mock
Package version 1.450.0
Package release 8.mga7
Package architecture noarch
Package type rpm
Category Development/Perl
License GPL+ or Artistic
Maintainer -
Download size 48.12 KB
Installed size 101.32 KB
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


Package Version Architecture Repository
perl-DBD-Mock-1.450.0-8.mga7.noarch.rpm 1.450.0 noarch Mageia Core
perl-DBD-Mock - - -


Name Value
perl >= 5.008001
perl(DBI) >= 1.300.0
perl(Test::Exception) >= 0.310.0
perl(Test::More) >= 0.470.0
perl(constant) -
perl(strict) -
perl(warnings) -
perl-base >= 5.28.0


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-8.mga7


Type URL
Binary Package perl-DBD-Mock-1.450.0-8.mga7.noarch.rpm
Source Package perl-DBD-Mock-1.450.0-8.mga7.src.rpm

Install Howto

  1. Enable the repository in Software Management
  2. Install perl-DBD-Mock rpm package:
    # dnf install perl-DBD-Mock




2018-09-19 - umeabot <umeabot> 1.450.0-8.mga7
(not released yet)
+ Revision: 1267042
- Mageia 7 Mass Rebuild
2016-06-18 - pterjan <pterjan> 1.450.0-7.mga6
+ Revision: 1025363
- Rebuild for perl 5.22.2
2016-02-08 - umeabot <umeabot> 1.450.0-6.mga6
+ Revision: 948343
- Mageia 6 Mass Rebuild

See Also

Package Description
perl-DBD-Multi-1.20.0-2.mga7.noarch.rpm Manage Multiple Data Sources with Failover and Load Balancing
perl-DBD-Pg-3.7.4-3.mga7.i586.rpm PostgreSQL database driver for the DBI module
perl-DBD-SQLite-1.620.0-1.mga7.i586.rpm Self Contained RDBMS in a DBI Driver
perl-DBD-SQLite2-0.380.0-1.mga7.i586.rpm Self Contained RDBMS in a DBI Driver (sqlite 2.x)
perl-DBD-Sybase-1.160.0-4.mga7.i586.rpm Sybase database driver for the DBI module
perl-DBD-XBase-1.80.0-3.mga7.noarch.rpm Module for dealing with XBase files
perl-DBD-mysql-4.50.0-1.mga7.i586.rpm MySQL-Perl bindings
perl-DBI-1.642.0-1.mga7.i586.rpm The Perl Database Interface
perl-DBI-ProfileDumper-Apache-1.642.0-1.mga7.i586.rpm DBI profiling data for mod_perl
perl-DBI-Shell-11.950.0-9.mga7.noarch.rpm Interactive command shell for the DBI
perl-DBI-proxy-1.642.0-1.mga7.i586.rpm DBI proxy server and client
perl-DBICx-TestDatabase-0.50.0-10.mga7.noarch.rpm A DBICx::TestDatabase you can add your
perl-DBIx-Class-0.82.841-2.mga7.noarch.rpm Extensible and flexible object <-> relational mapper
perl-DBIx-Class-Candy-0.5.3-3.mga7.noarch.rpm Create sugar for your favorite ORM, DBIx::Class
perl-DBIx-Class-Cursor-Cached-1.1.4-3.mga7.noarch.rpm Cursor class with built-in caching support