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
96 0 0 1 $dsn and $table
0 0 1 $dsn and $table and $key
144 1 0 0 $self->{'CanBind'} && $CAN_BINDSELECT{$driver}
155 0 1 0 defined $_[0]{'dbh'} and $_[0]{'needs_disconnect'}
386 0 0 0 not $self->{'CanBindSelect'} and $query =~ /\bwhere\b/i
405 0 7 62 $sth and $sth->execute
419 1 0 0 not $self->{'CannotListfields'} and defined $sth
1 0 0 not $self->{'CannotListfields'} and defined $sth and $sth->execute
544 0 0 0 $s->{'driver'} eq 'Oracle' and $$types{$fields->[$i]} eq 'DATE'
564 57 0 0 $s->{'driver'} eq 'Oracle' and $types->{$field} eq 'DATE'

or 3 conditions

line l !l&&r !l&&!r condition
182 22 0 0 $s->_run_query($tag, $query, @keys) || croak('FETCH: ', $s->errstr)
208 4 0 0 $s->_prepare('fetchkeys', "SELECT $s->{'key'} FROM $s->{'table'}") || croak('FIRSTKEY: ', $s->errstr)
267 1 0 0 $s->_run_query('delete', "delete from $s->{'table'} where $s->{'key'} = ?", $key) || croak('DELETE: delete statement failed, ', $s->errstr)
368 1 0 0 $s->{'dbh'}->prepare("select $s->{'key'} from $s->{'table'} where $query") || croak('select_where: ', $s->errstr)
420 1 0 0 $dbh->prepare("SELECT * FROM $table WHERE 0=1") || croak('_fields() failed during prepare(SELECT) statement: ', $self->errstr)
457 1 0 0 $self->{'dbh'}->prepare("SELECT * FROM $self->{'table'} WHERE 0=1") || croak("_types() failed during prepare(SELECT) statement: $DBI::errstr")
476 24 0 0 $s->_run_query("fetch$f", "SELECT $f FROM $s->{'table'} WHERE $s->{'key'}=?", $key) || croak('_fetch_field: ', $s->errstr)