Condition Coverage

blib/lib/Tie/DBI.pm
Criterion Covered Total %
condition 16 51 31.3


and 3 conditions

line !l l&&!r l&&r condition
95 0 0 1 $dsn and $table
0 0 1 $dsn and $table and $key
143 1 0 0 $$self{'CanBind'} && $CAN_BINDSELECT{$driver}
152 0 1 0 defined $_[0]{'dbh'} and $_[0]{'needs_disconnect'}
385 0 0 0 not $$self{'CanBindSelect'} and $query =~ /\bwhere\b/i
398 0 6 58 $sth and $sth->execute
412 1 0 0 not $$self{'CannotListfields'} and defined $sth
1 0 0 not $$self{'CannotListfields'} and defined $sth and $sth->execute
537 0 0 0 $$s{'driver'} eq 'Oracle' and $$types{$$fields[$i]} eq 'DATE'
557 53 0 0 $$s{'driver'} eq 'Oracle' and $$types{$field} eq 'DATE'

or 3 conditions

line l !l&&r !l&&!r condition
181 20 0 0 $s->_run_query($tag, $query, @keys) || croak('FETCH: ', $s->errstr)
207 4 0 0 $s->_prepare('fetchkeys', "SELECT $$s{'key'} FROM $$s{'table'}") || croak('FIRSTKEY: ', $s->errstr)
266 1 0 0 $s->_run_query('delete', "delete from $$s{'table'} where $$s{'key'} = ?", $key) || croak('DELETE: delete statement failed, ', $s->errstr)
367 1 0 0 $$s{'dbh'}->prepare("select $$s{'key'} from $$s{'table'} where $query") || croak('select_where: ', $s->errstr)
413 1 0 0 $dbh->prepare("SELECT * FROM $table WHERE 0=1") || croak('_fields() failed during prepare(SELECT) statement: ', $self->errstr)
450 1 0 0 $$self{'dbh'}->prepare("SELECT * FROM $$self{'table'} WHERE 0=1") || croak("_types() failed during prepare(SELECT) statement: $DBI::errstr")
469 23 0 0 $s->_run_query("fetch$f", "SELECT $f FROM $$s{'table'} WHERE $$s{'key'}=?", $key) || croak('_fetch_field: ', $s->errstr)