Condition Coverage

blib/lib/DBIx/PreQL.pm
Criterion Covered Total %
condition 24 45 53.3


and 2 conditions

line l !l condition
314 27 0 $known_tags &&= {map({$_, 1;} @$known_tags)}

and 3 conditions

line !l l&&!r l&&r condition
51 0 27 0 defined $q and length $q
156 131 6 14 @{$$nph{'missing'};} and $prefix
259 50 0 0 $type and _is_null($type)
263 0 0 50 exists $NPH_HANDLER{$sigil} and exists $NPH_HANDLER{$sigil}{$type}
281 1 20 0 $1 && !$2 && length $3
333 22 76 7 @query and $line =~ /^\s*FROM\b/i
337 22 75 8 @query and $query[-1] =~ /\bWHERE\s*$/i
383 0 0 0 _is_a($val, 'SCALAR') and $$val =~ /^\s*NULL\s*$/i

or 2 conditions

line l !l condition
27 28 0 $data || {}
258 0 50 ref $value || ''

or 3 conditions

line l !l&&r !l&&!r condition
23 0 28 2 not defined $data or ref $data eq 'HASH'
64 27 0 134 not $indent or $l < $indent
184 16 0 21 @{$$nph{'all'};} or @{$$deps{'all'};}
201 0 0 39 $tag =~ /,$/ or grep(($_ eq uc $tag), ('SELECT', 'FROM', 'LEFT', 'RIGHT', 'INNER', 'OUTER', 'JOIN', 'USING', 'ON', 'WHERE', 'AND', 'OR', 'ORDER', 'GROUP', 'BY', 'LIMIT', 'OFFSET', 'HAVING', 'UNION', 'ALL', 'DISTINCT', 'INSERT', 'UPDATE', 'ALTER', 'CREATE', 'DROP', 'WITH', 'OVER', 'BETWEEN'))
363 0 0 0 not ref $val or overload::Method($val, '""')