| 1 |
Source: libdbd-mock-perl |
| 2 |
Maintainer: Debian Perl Group <[email protected]> |
| 3 |
Uploaders: gregor herrmann <[email protected]>, |
| 4 |
Ansgar Burchardt <[email protected]>, |
| 5 |
Xavier Guimard <[email protected]> |
| 6 |
Section: perl |
| 7 |
Testsuite: autopkgtest-pkg-perl |
| 8 |
Priority: optional |
| 9 |
Build-Depends: debhelper-compat (= 13), |
| 10 |
libmodule-build-tiny-perl |
| 11 |
Build-Depends-Indep: libdbi-perl <!nocheck>, |
| 12 |
libtest-exception-perl <!nocheck>, |
| 13 |
libtest-pod-coverage-perl <!nocheck>, |
| 14 |
libtest-pod-perl <!nocheck>, |
| 15 |
perl |
| 16 |
Standards-Version: 4.5.1 |
| 17 |
Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libdbd-mock-perl |
| 18 |
Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libdbd-mock-perl.git |
| 19 |
Homepage: https://metacpan.org/release/DBD-Mock |
| 20 |
Rules-Requires-Root: no |
| 21 |
|
| 22 |
Package: libdbd-mock-perl |
| 23 |
Architecture: all |
| 24 |
Depends: ${misc:Depends}, |
| 25 |
${perl:Depends}, |
| 26 |
libdbi-perl |
| 27 |
Description: Mock database driver for testing |
| 28 |
Testing with databases can be tricky. If you are developing a system married |
| 29 |
to a single database then you can make some assumptions about your |
| 30 |
environment and ask the user to provide relevant connection information. But |
| 31 |
if you need to test a framework that uses DBI, particularly a framework that |
| 32 |
uses different types of persistence schemes, then it may be more useful to |
| 33 |
simply verify what the framework is trying to do -- ensure the right SQL is |
| 34 |
generated and that the correct parameters are bound. DBD::Mock makes it easy |
| 35 |
to just modify your configuration (presumably held outside your code) and |
| 36 |
just use it instead of DBD::Foo (like DBD::Pg or DBD::mysql) in your |
| 37 |
framework. |