Condition Coverage

blib/lib/SQL/Interp.pm
Criterion Covered Total %
condition 17 20 85.0


and 3 conditions

line !l l&&!r l&&r condition
163 16 0 2 keys %$item == 1 and defined $item->{'value'}
177 149 0 4 $sql =~ /\b(?:ON\s+DUPLICATE\s+KEY\s+UPDATE|SET)\s*$/is and ref $item eq 'HASH'
88 2 33 $sql =~ /(?:\bFROM|JOIN)\s*$/is and not $sql =~ /DISTINCT\s+FROM\s*$/
247 29 0 4 defined $next_item and ref $next_item eq ''
29 2 2 defined $next_item and ref $next_item eq '' and $next_item =~ /\s*AS\b/is

or 2 conditions

line l !l condition
178 2 28 $1 || ''

or 3 conditions

line l !l&&r !l&&!r condition
295 176 2 27 $sql =~ /(^|\s)$/ or $item =~ /^\s/