Condition Coverage

blib/lib/Data/ObjectDriver/SQL.pm
Criterion Covered Total %
condition 44 75 58.6


and 3 conditions

line !l l&&!r l&&r condition
38 13 0 0 builtin::blessed($term) and $term->isa("Data::ObjectDriver::SQL")
79 19 0 0 builtin::blessed($col) and $col->isa("Data::ObjectDriver::SQL")
97 0 24 8 $stmt->joins and @{$stmt->joins;}
120 26 0 0 builtin::blessed($from) and $from->isa("Data::ObjectDriver::SQL")
139 28 0 3 $comment and $comment =~ /([ 0-9a-zA-Z.:;()_#&,]+)/
184 0 34 34 $stmt->where && @{$stmt->where;}
191 0 31 1 $stmt->having && @{$stmt->having;}
199 0 5 1 defined $escape_char and length $escape_char > 2
279 1 0 0 builtin::blessed($orig) and $orig->isa("Data::ObjectDriver::SQL")
321 16 2 2 $op eq 'IN' || $op eq 'NOT IN' and ref $val->{'value'} eq "ARRAY"
16 1 1 $op eq 'IN' || $op eq 'NOT IN' and ref $val->{'value'} eq "REF"
16 0 1 $op eq "BETWEEN" and ref $val->{'value'} eq "ARRAY"
334 15 0 0 builtin::blessed($value) and $value->isa("Data::ObjectDriver::SQL")
342 9 0 6 $val->{'escape'} and $op =~ /^(?:NOT\s+)?I?LIKE$/
383 34 0 3 $hint and ref $hint eq "HASH"
384 0 0 3 $hint->{'list'} and @{$hint->{'list'};}

or 2 conditions

line l !l condition
63 1 0 $hint->{'type'} || 'USE'
297 6 1 $val->[0] || ''
386 3 0 $hint->{'type'} or "USE"

or 3 conditions

line l !l&&r !l&&!r condition
39 0 0 0 $col || $term->as || $term->as_sql
43 10 3 0 $col ||= $term
151 0 0 0 $alias ||= $stmt->as
297 4 5 2 ref $val->[0] or ($val->[0] || '') eq "-and"
318 1 19 0 $val->{'column'} || $col
321 3 1 16 $op eq 'IN' || $op eq 'NOT IN'
2 0 16 $op eq 'IN' || $op eq 'NOT IN'