Index | index by Group | index by Distribution | index by Vendor | index by creation date | index by Name | Mirrors | Help | Search |
Name: perl-DBD-Mock | Distribution: Mageia |
Version: 1.580.0 | Vendor: Mageia.Org |
Release: 1.mga8 | Build date: Tue Nov 3 07:06:35 2020 |
Group: Development/Perl | Build host: localhost |
Size: 153588 | Source RPM: perl-DBD-Mock-1.580.0-1.mga8.src.rpm |
Packager: tv <tv> | |
Url: https://metacpan.org/release/DBD-Mock | |
Summary: Mock database driver for testing |
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)
GPL+ or Artistic
* Tue Nov 03 2020 tv <tv> 1.580.0-1.mga8 + Revision: 1641924 - update to 1.58 * Sat Sep 19 2020 tv <tv> 1.570.0-1.mga8 + Revision: 1628689 - update to 1.57 * Fri Sep 18 2020 tv <tv> 1.560.0-1.mga8 + Revision: 1628501 - update to 1.56 * Tue Feb 18 2020 umeabot <umeabot> 1.550.0-2.mga8 + Revision: 1541833 - Mageia 8 Mass Rebuild * Thu Jan 02 2020 tv <tv> 1.550.0-1.mga8 + Revision: 1475552 - update to 1.55 * Mon Dec 23 2019 tv <tv> 1.540.0-1.mga8 + Revision: 1469734 - update to 1.54 * Wed Dec 04 2019 tv <tv> 1.530.0-1.mga8 + Revision: 1464257 - update to 1.53 * Tue Oct 29 2019 tv <tv> 1.520.0-1.mga8 + Revision: 1456538 - update to 1.52 * Thu Oct 24 2019 tv <tv> 1.510.0-1.mga8 + Revision: 1455601 - update to 1.51 * Wed Oct 23 2019 tv <tv> 1.500.0-1.mga8 + Revision: 1455418 - update to 1.50 * Sat Sep 14 2019 tv <tv> 1.490.0-1.mga8 + Revision: 1440576 - update to 1.49 * Sat Sep 07 2019 tv <tv> 1.470.0-1.mga8 + Revision: 1438272 - update to 1.47
/usr/share/doc/perl-DBD-Mock /usr/share/doc/perl-DBD-Mock/Changes /usr/share/doc/perl-DBD-Mock/LICENSE /usr/share/doc/perl-DBD-Mock/META.json /usr/share/doc/perl-DBD-Mock/META.yml /usr/share/doc/perl-DBD-Mock/MYMETA.yml /usr/share/man/man3/DBD::Mock.3pm.xz /usr/share/man/man3/DBD::Mock::Pool.3pm.xz /usr/share/man/man3/DBD::Mock::Pool::db.3pm.xz /usr/share/man/man3/DBD::Mock::Session.3pm.xz /usr/share/man/man3/DBD::Mock::StatementTrack.3pm.xz /usr/share/man/man3/DBD::Mock::StatementTrack::Iterator.3pm.xz /usr/share/man/man3/DBD::Mock::db.3pm.xz /usr/share/man/man3/DBD::Mock::dr.3pm.xz /usr/share/man/man3/DBD::Mock::st.3pm.xz /usr/share/perl5/vendor_perl/DBD /usr/share/perl5/vendor_perl/DBD/Mock /usr/share/perl5/vendor_perl/DBD/Mock.pm /usr/share/perl5/vendor_perl/DBD/Mock/Pool /usr/share/perl5/vendor_perl/DBD/Mock/Pool.pm /usr/share/perl5/vendor_perl/DBD/Mock/Pool/db.pm /usr/share/perl5/vendor_perl/DBD/Mock/Session.pm /usr/share/perl5/vendor_perl/DBD/Mock/StatementTrack /usr/share/perl5/vendor_perl/DBD/Mock/StatementTrack.pm /usr/share/perl5/vendor_perl/DBD/Mock/StatementTrack/Iterator.pm /usr/share/perl5/vendor_perl/DBD/Mock/db.pm /usr/share/perl5/vendor_perl/DBD/Mock/dr.pm /usr/share/perl5/vendor_perl/DBD/Mock/st.pm
Generated by rpm2html 1.8.1
Fabrice Bellet, Sun Oct 13 08:20:58 2024