Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help Search

perl-DBD-Mock-1.590.0-2.mga9 RPM for noarch

From Mageia Cauldron for i586 / media / core / release

Name: perl-DBD-Mock Distribution: Mageia
Version: 1.590.0 Vendor: Mageia.Org
Release: 2.mga9 Build date: Mon Mar 21 13:53:30 2022
Group: Development/Perl Build host: localhost
Size: 154172 Source RPM: perl-DBD-Mock-1.590.0-2.mga9.src.rpm
Packager: umeabot <umeabot>
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)

Provides

Requires

License

GPL+ or Artistic

Changelog

* Mon Mar 21 2022 umeabot <umeabot> 1.590.0-2.mga9
  + Revision: 1813948
  - Mageia 9 Mass Rebuild
* Thu Feb 25 2021 tv <tv> 1.590.0-1.mga9
  + Revision: 1690209
  - update to 1.59
* 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

Files

/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, Tue Apr 9 10:16:32 2024