Branch Coverage

blib/lib/Grep/Query/Parser.pm
Criterion Covered Total %
branch 36 42 85.7


line true false branch
25 8 429 unless ($PARSER)
31 0 8 unless defined $PARSER
47 14 423 unless ($parsedQuery)
54 14 0 unless $parsedQuery
64 421 0 if ($oldFieldRefCount)
68 1 420 if $newFieldRefCount and $newFieldRefCount != $oldFieldRefCount
84 5265 1817 if ($r)
86 308 4957 if ($r eq 'ARRAY') { }
3541 1416 elsif ($r eq 'HASH') { }
103 844 416 if ref $alt eq 'ARRAY' and scalar @$alt == 0
104 108 0 if &blessed($alt) and $alt->{'rparen'}
105 308 952 if ($keep)
107 0 308 if exists $parsedQuery->{'__ALT'}
117 902 5280 if ($k eq 'field_op_value_test')
121 17 885 if ($op eq 'true') { }
13 872 elsif ($op eq 'false') { }
517 355 elsif ($op =~ /^(?:regexp|=~)$/) { }
124 231 elsif ($op =~ /^(?:eq|ne|[lg][te])$/) { }
231 0 elsif ($op =~ /^(?:[=!<>]=|<|>)$/) { }
141 1 230 unless &looks_like_number($possibleNumber)
170 1 516 unless (eval { do { $cre = qr/$re/ } })