Condition Coverage

blib/lib/SQL/Format.pm
Criterion Covered Total %
condition 99 127 77.9


and 3 conditions

line !l l&&!r l&&r condition
109 20 0 1 $ref eq 'REF' and ref $$_ eq 'ARRAY'
116 2 0 1 ref $term eq 'REF' and ref $$term eq 'ARRAY'
205 59 0 2 ref $v eq 'REF' and ref $$v eq 'ARRAY'
224 0 5 4 $v->[0] and $v->[0] eq '-and'
0 1 4 $v->[0] and $v->[0] eq '-or'
255 10 0 2 ref $v eq 'REF' and ref $$v eq 'ARRAY'
485 0 0 13 $param->{'table'} and $param->{'condition'}
501 7 0 1 ref $v eq 'REF' and ref $$v eq 'ARRAY'
509 2 0 1 ref $v->{$op} eq 'REF' and ref ${$v->{$op};} eq 'ARRAY'
543 1 1 378 $QUOTE_CHAR and $NAME_SEP
559 0 0 4 exists $v->{'index'} and ref $v->{'index'}
635 19 0 3 ref $val eq 'REF' and ref $$val eq 'ARRAY'
658 70 0 3 exists $args{'driver'} and defined $args{'driver'}
707 0 2 5 ref $where eq 'HASH' and keys %$where
5 2 5 $where and (ref $where eq 'HASH' and keys %$where)
7 0 0 ref $where eq 'ARRAY' and @$where
724 1 1 6 defined $table and ref $values
740 7 0 1 ref $val eq 'REF' and ref $$val eq 'ARRAY'
766 1 1 9 defined $table and ref $set
781 1 1 2 ref $where eq 'HASH' and keys %$where
5 2 2 $where and (ref $where eq 'HASH' and keys %$where)
6 1 0 ref $where eq 'ARRAY' and @$where
810 1 1 3 ref $where eq 'HASH' and keys %$where
1 2 3 $where and (ref $where eq 'HASH' and keys %$where)
2 1 0 ref $where eq 'ARRAY' and @$where
824 2 1 10 ref $cols eq 'ARRAY' and ref $values eq 'ARRAY'
843 40 0 2 ref $val eq 'REF' and ref $$val eq 'ARRAY'
876 2 1 5 ref $values eq 'ARRAY' and ref $values->[0] eq 'HASH'
890 0 0 1 ref $values and ref $update_values

or 2 conditions

line l !l condition
193 3 5 $logic ||= 'OR'
212 13 1 $v->[0] || ''
9 1 $v->[0] || ''
453 3 0 $LIMIT_DIALECT_MAP->{$LIMIT_DIALECT} || 0
487 3 10 $param->{'type'} || 'INNER'
560 2 2 $v->{'index'}{'type'} || 'USE'
698 1 11 delete $opts->{'prefix'} || 'SELECT'
732 1 5 $opts->{'prefix'} || 'INSERT INTO'
774 1 8 delete $opts->{'prefix'} || 'UPDATE'
805 1 5 delete $opts->{'prefix'} || 'DELETE'
833 2 8 $opts->{'prefix'} || 'INSERT INTO'

or 3 conditions

line l !l&&r !l&&!r condition
212 1 4 10 ref $v->[0] or ($v->[0] || '') eq '-and'
5 4 6 ref $v->[0] or ($v->[0] || '') eq '-and' or ($v->[0] || '') eq '-or'
254 8 54 0 $OP_ALIAS->{$op} || $op
707 5 0 7 $where and (ref $where eq 'HASH' and keys %$where) or ref $where eq 'ARRAY' and @$where
781 2 0 7 $where and (ref $where eq 'HASH' and keys %$where) or ref $where eq 'ARRAY' and @$where
810 3 0 3 $where and (ref $where eq 'HASH' and keys %$where) or ref $where eq 'ARRAY' and @$where