DBI data source: DBI username: DBI password: DBI 'SELECT' SQL: Checking if your kit is complete... Looks good Writing Makefile for Test::MockDBI cp lib/Test/MockDBI.pm blib/lib/Test/MockDBI.pm Manifying blib/man3/Test::MockDBI.3 /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/bad_param-diff-type.PL t/bad_param-diff-type.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/bad_param-ok-2.PL t/bad_param-ok-2.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/bad_param-ok-2of3.PL t/bad_param-ok-2of3.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/bad_param-ok-none.PL t/bad_param-ok-none.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/bad_param-ok.PL t/bad_param-ok.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/bind_param-extra-arg.PL t/bind_param-extra-arg.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/bind_param-undef.PL t/bind_param-undef.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/coderef-array-0.PL t/coderef-array-0.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/coderef-array-1.PL t/coderef-array-1.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/coderef-array-many.PL t/coderef-array-many.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/coderef-scalar-0.PL t/coderef-scalar-0.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/coderef-scalar-1.PL t/coderef-scalar-1.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/coderef-scalar-many.PL t/coderef-scalar-many.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/connect.PL t/connect.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/dbi-ok.PL t/dbi-ok.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/fetch-0.PL t/fetch-0.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/fetch-1.PL t/fetch-1.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/fetch-empty.PL t/fetch-empty.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/fetch-many.PL t/fetch-many.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/fetch-undef.PL t/fetch-undef.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/fetchall_arrayref-0.PL t/fetchall_arrayref-0.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/fetchall_arrayref-1.PL t/fetchall_arrayref-1.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/fetchall_arrayref-many.PL t/fetchall_arrayref-many.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/fetchrow-0.PL t/fetchrow-0.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/fetchrow-1.PL t/fetchrow-1.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/fetchrow-many.PL t/fetchrow-many.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/fetchrow_array-0.PL t/fetchrow_array-0.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/fetchrow_array-1.PL t/fetchrow_array-1.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/fetchrow_array-different-sql.PL t/fetchrow_array-different-sql.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/fetchrow_array-many.PL t/fetchrow_array-many.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/fetchrow_arrayref-0.PL t/fetchrow_arrayref-0.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/fetchrow_arrayref-1.PL t/fetchrow_arrayref-1.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/fetchrow_arrayref-different-sql.PL t/fetchrow_arrayref-different-sql.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/fetchrow_arrayref-many.PL t/fetchrow_arrayref-many.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/no-dbi-ok.PL t/no-dbi-ok.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/set_rows-different-numeric.PL t/set_rows-different-numeric.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/set_rows-no-arg.PL t/set_rows-no-arg.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/set_rows-numeric.PL t/set_rows-numeric.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/set_rows-undef.PL t/set_rows-undef.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/test-type-1.PL t/test-type-1.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/test-type-another.PL t/test-type-another.pl /Users/cpanrun/build/5.10.0/bin/perl "-Iblib/arch" "-Iblib/lib" t-src/test-type-default.PL t/test-type-default.pl PERL_DL_NONLAZY=1 /Users/cpanrun/build/5.10.0/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(1, 'blib/lib', 'blib/arch')" t/*.t t/bad_method...........1..17 mock DBI interface initialized... connect() 'CONNECT TO AS WITH ' ok 1 - DBI connect() disconnect() ok 2 - DBI disconnect() prepare() ok 3 - DBI prepare() finish() ok 4 - DBI finish() prepare_cached() ok 5 - DBI prepare_cached() commit() ok 6 - DBI commit() bind_columns() ok 7 - DBI bind_columns() bind_param() parm , value $VAR1 = undef; ok 8 - DBI bind_param() execute() ok 9 - DBI execute() fetchall_arrayref() ok 10 - DBI fetchall_arrayref() fetchrow_arrayref() ok 11 - DBI fetchrow_arrayref() fetchrow_array() ok 12 - DBI fetchrow_array() fetchrow() ok 13 - DBI fetchrow() fetch() ok 14 - DBI fetch() + pattern without SQL do() ok 15 - DBI do() rows() ok 16 - DBI rows() prepare() 'SELECT *' ok 17 - SQL without pattern ok t/bad_param............1..5 ok 1 - bad param: simple test OK ok 2 - bad param: 2nd param bad ok 3 - bad param: 2nd of 3 params bad ok 4 - bad param: no bad params bound ok 5 - bad param: different DBI type so no bad params found ok t/bind_array...........1..18 mock DBI interface initialized... connect() 'CONNECT TO AS WITH ' prepare() 'no rows returned' bind_columns() 'SCALAR(0x181cb10)' fetch() ok 1 - array - no rows returned prepare() 'TEST 1 column for an array' bind_columns() 'SCALAR(0x181cb10)' fetch() ok 2 - 1 column for an array fetch() ok 3 - array-bound variables undisturbed after fetch ends prepare() 'TEST 2 columns for an array' bind_columns() 'SCALAR(0x181cb10)' fetch() ok 4 - 2 columns for an array prepare() 'TEST many columns for an array' bind_columns() 'SCALAR(0x181cb10)' fetch() ok 5 - many columns for an array prepare() 'TEST many rows returned for an array and rebind' bind_columns() 'SCALAR(0x1841af0)' fetch() fetch() ok 6 - many rows returned for an array and rebind prepare() 'return value is set by array not coderef, 1 column' bind_columns() 'SCALAR(0x181cb10)' fetch() ok 7 - return value is set by array not coderef, 1 column prepare() 'return value is set by array not coderef, 2 columns' bind_columns() 'SCALAR(0x181cb10)' fetch() ok 8 - return value is set by array not coderef, 2 columns prepare() 'return value is set by array not coderef, many columns' bind_columns() 'SCALAR(0x181cb10)' fetch() ok 9 - return value is set by array not coderef, many columns prepare() 'arrayref - no rows returned' bind_columns() 'SCALAR(0x181cb10)' fetchrow_arrayref() ok 10 - arrayref - no rows returned prepare() 'TEST 1 column for an arrayref' bind_columns() 'SCALAR(0x181cb10)' fetchrow_arrayref() ok 11 - 1 column for an arrayref fetchrow_arrayref() ok 12 - arrayref-bound variables undisturbed after fetch ends prepare() 'TEST 2 columns for an arrayref' bind_columns() 'SCALAR(0x181cb10)' fetchrow_arrayref() ok 13 - 2 columns for an arrayref prepare() 'TEST many columns for an arrayref' bind_columns() 'SCALAR(0x181cb10)' fetchrow_arrayref() ok 14 - many columns for an arrayref prepare() 'TEST many rows returned for an arrayref and rebind' bind_columns() 'SCALAR(0x1841af0)' fetchrow_arrayref() fetchrow_arrayref() ok 15 - many rows returned for an arrayref and rebind prepare() 'return value is set by arrayref not coderef, 1 column' bind_columns() 'SCALAR(0x181cb10)' fetchrow_arrayref() ok 16 - return value is set by arrayref not coderef, 1 column prepare() 'return value is set by arrayref not coderef, 2 columns' bind_columns() 'SCALAR(0x181cb10)' fetchrow_arrayref() ok 17 - return value is set by arrayref not coderef, 2 columns prepare() 'return value is set by arrayref not coderef, many columns' bind_columns() 'SCALAR(0x181cb10)' fetchrow_arrayref() ok 18 - return value is set by arrayref not coderef, many columns ok t/bind_param...........1..2 mock DBI interface initialized... ok 1 - DBI bind_param() OK ok 2 - 0, '0', "", and undef handled ok t/connect..............1..1 mock DBI interface initialized... ok 1 - DBI connect() OK ok t/dbi-ok...............1..1 Can't connect to data source '' because I can't work out what driver to use (it doesn't seem to contain a 'dbi:driver:' prefix and the DBI_DRIVER env var is not set) at t/dbi-ok.pl line 45 # Looks like your test died before it could output anything. # Failed test 'DBI works OK when Test::MockDBI is used but not invoked' # at t/dbi-ok.t line 14. # '' # doesn't match '(?-xism:OK)' not ok 1 - DBI works OK when Test::MockDBI is used but not invoked # Looks like you failed 1 test of 1. dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 1 Failed 1/1 tests, 0.00% okay t/diff-type............1..3 mock DBI interface initialized... connect() 'CONNECT TO AS WITH ' ok 1 - bad_method() fails on different DBI type prepare() 'SELECT *' fetchrow_arrayref() ok 2 - set_retval_scalar fails on different DBI type prepare() 'SELECT *' fetchrow_array() ok 3 - set_retval_array fails on different DBI type ok t/internal.............1..19 mock DBI interface initialized... ok 1 - use Test::MockDBI; connect() 'CONNECT TO AS WITH ' ok 2 - DBI connect() disconnect() ok 3 - DBI disconnect() prepare() 'Xy' ok 4 - DBI prepare() prepare() 'Xy' ok 5 - prepare() returns same handle as connect() prepare_cached() 'Xy' ok 6 - DBI prepare_cached() prepare_cached() 'Xy' ok 7 - prepare_cached() returns same handle as connect() commit() ok 8 - DBI commit() bind_columns() ok 9 - DBI bind_columns() bind_param() parm , value $VAR1 = undef; ok 10 - DBI bind_param() finish() ok 11 - DBI finish() execute() ok 12 - DBI execute() fetchall_arrayref() ok 13 - DBI fetchall_arrayref() fetchrow_arrayref() ok 14 - DBI fetchrow_arrayref() fetchrow_array() ok 15 - DBI fetchrow_array() fetchrow() ok 16 - DBI fetchrow() fetch() ok 17 - DBI fetch() do() ok 18 - DBI do() rows() ok 19 - DBI rows() ok t/set-value............1..25 ok 1 - fetchrow_array() without args ok 2 - fetchrow_array() with 1-element array ok 3 - fetchrow_array() with many-element array ok 4 - fetch() without args ok 5 - fetch() with empty list ok 6 - fetch() with 1-element of undef list ok 7 - fetch() with 1-element array ok 8 - fetch() with many-element array ok 9 - fetchall_arrayref() without args ok 10 - fetchall_arrayref() with 1-element array ok 11 - fetchall_arrayref() with many-element array ok 12 - fetchrow_arrayref() without args ok 13 - fetchrow_arrayref() with 1-element array ok 14 - fetchrow_arrayref() with many-element array ok 15 - fetchrow() without args ok 16 - fetchrow() with 1-element array ok 17 - fetchrow() with many-element array ok 18 - fetch*() that returns arrays handles multiple SQL statements ok 19 - fetch*() that returns scalars handles multiple SQL statements ok 20 - coderef returns 0-element arrayref ok 21 - coderef returns 1-element arrayref ok 22 - coderef returns many-element arrayref ok 23 - coderef returns 0-element array ok 24 - coderef returns 1-element array ok 25 - coderef returns many-element array ok t/set_dbi_test_type....1..10 ok 1 - DBI testing type default is 0 (zero) ok 2 - no argument ok 3 - undef argument ok 4 - simple non-digit-string argument ok 5 - leading non-digit-string argument ok 6 - trailing non-digit-string argument ok 7 - middle non-digit-string argument ok 8 - 0 (zero) argument ok 9 - 1 (one) argument ok 10 - other digit string argument ok t/set_rows.............1..4 ok 1 - no \#rows argument ok 2 - undef argument ok 3 - numeric argument ok 4 - different numeric argument ok t/test-type............1..3 ok 1 - default test type ok 2 - test type 1 ok 3 - another test type ok t/wildcard-type........1..2 mock DBI interface initialized... connect() 'CONNECT TO AS WITH ' prepare() 'SELECT ALL' fetchrow_arrayref() ok 1 - set_retval_scalar wildcard DBI type fetchrow_array() ok 2 - set_retval_array wildcard DBI type ok Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t/dbi-ok.t 1 256 1 1 1 Failed 1/13 test scripts. 1/110 subtests failed. Files=13, Tests=110, 7 wallclock secs ( 4.75 cusr + 1.41 csys = 6.16 CPU) Failed 1/13 test programs. 1/110 subtests failed. make: *** [test_dynamic] Error 255