Condition Coverage

blib/lib/DBIx/DBO/DBD.pm
Criterion Covered Total %
condition 71 96 73.9


and 2 conditions

line l !l condition
22 419 402 $me->isa($_) and return 1
529 1425 444 defined $$_{$opt} and return $$_{$opt}

and 3 conditions

line !l l&&!r l&&r condition
43 0 0 0 $info and @$info == 0
44 0 0 0 $info and @$info == 1
0 0 0 $info and @$info == 1 and $$info[0][2] eq $table
120 2 1 1 defined $id[0] && length $id[0]
1 1 3 @id and not defined $id[0] && length $id[0]
334 85 6 0 $with != 1 and $c{'Check'} ne 'Auto'
449 22 1 2 ref $val eq 'SCALAR' and $$val =~ /^\s*(?:NOT\s+)NULL\s*$/is
535 122 0 1 $opt eq 'OnRowUpdate' and $val
122 0 1 $opt eq 'OnRowUpdate' and $val and $val ne 'empty'
0 0 1 $opt eq 'OnRowUpdate' and $val and $val ne 'empty' and $val ne 'simple'
0 1 0 $opt eq 'OnRowUpdate' and $val and $val ne 'empty' and $val ne 'simple' and $val ne 'reload'
537 119 1 3 $opt eq 'UseHandle' and $val
120 1 2 $opt eq 'UseHandle' and $val and $val ne 'read-only'
2 1 1 $opt eq 'UseHandle' and $val and $val ne 'read-only' and $val ne 'read-write'
548 0 1 0 $me->_sth and $$me{'sth'}{'Executed'} || $me->run

or 2 conditions

line l !l condition
52 2 1 $cols && $cols->fetchall_arrayref({}) || []
293 35 52 $_check_aliases || 0
619 4 0 $rv || '0E0'
627 4 0 $me->config('OnRowUpdate') || 'simple'

or 3 conditions

line l !l&&r !l&&!r condition
231 4 4 0 $me->_table_alias($fld) || $$fld{'Name'}
409 2 38 12 $force || _op_ag($op)
413 2 10 2 $whs[$i][7] || _op_ag($whs[$i][0])
5 6 8 ref $whs[$i][0] or $ag ne ($whs[$i][7] || _op_ag($whs[$i][0]))
431 16 8 41 $_[0] eq '=' or $_[0] eq 'IS'
24 0 41 $_[0] eq '=' or $_[0] eq 'IS' or $_[0] eq '<=>'
8 2 39 $_[0] eq '=' or $_[0] eq 'IS' or $_[0] eq '<=>' or $_[0] eq 'IN'
2 2 37 $_[0] eq '=' or $_[0] eq 'IS' or $_[0] eq '<=>' or $_[0] eq 'IN' or $_[0] eq 'BETWEEN'
432 8 4 25 $_[0] eq '<>' or $_[0] eq 'IS NOT'
12 4 21 $_[0] eq '<>' or $_[0] eq 'IS NOT' or $_[0] eq 'NOT IN'
8 4 17 $_[0] eq '<>' or $_[0] eq 'IS NOT' or $_[0] eq 'NOT IN' or $_[0] eq 'NOT BETWEEN'
548 1 0 0 $$me{'sth'}{'Executed'} || $me->run
635 1 0 4 defined $update[1][1] || @{$update[1][0];} != 1 || ref $update[1][0][0] && (!_isa($update[1][0][0], 'DBIx::DBO::Column') || $cant_update[$me->_column_idx($update[1][0][0])])