Branch Coverage

blib/lib/Grep/Query/Parser.pm
Criterion Covered Total %
branch 51 64 79.6


line true false branch
25 9 443 unless ($PARSER)
31 0 9 unless defined $PARSER
47 14 438 unless ($parsedQuery)
54 14 0 unless $parsedQuery
64 436 0 if ($oldFieldRefCount)
68 1 435 if $newFieldRefCount and $newFieldRefCount != $oldFieldRefCount
84 5378 1862 if ($r)
86 314 5064 if ($r eq 'ARRAY') { }
3621 1443 elsif ($r eq 'HASH') { }
103 870 422 if ref $alt eq 'ARRAY' and scalar @$alt == 0
104 108 0 if &blessed($alt) and $alt->{'rparen'}
105 314 978 if ($keep)
107 0 314 if exists $parsedQuery->{'__ALT'}
117 923 5396 if ($k eq 'field_op_value_test')
121 17 906 if ($op eq 'true') { }
13 893 elsif ($op eq 'false') { }
1 892 elsif ($op eq 'defined') { }
0 892 elsif ($op eq 'exists') { }
2 890 elsif ($op eq 'type') { }
1 889 elsif ($op =~ /^size(.+)/) { }
523 366 elsif ($op =~ /^(?:regexp|=~)$/) { }
126 240 elsif ($op =~ /^(?:eq|ne|[lg][te])$/) { }
240 0 elsif ($op =~ /^(?:[=!<>]=|<|>)$/) { }
131 2 2 defined $_[0] ? :
136 0 0 defined $_[0] && ref $_[0] eq 'HASH' ? :
141 0 2 unless $v =~ /^(?:scalar|array|hash)$/i
142 5 1 defined $_[0] ? :
148 0 1 unless &looks_like_number($possibleNumber)
157 0 5 $reftype eq 'HASH' ? :
0 5 $reftype eq 'ARRAY' ? :
174 1 239 unless &looks_like_number($possibleNumber)
203 1 522 unless (eval { do { $cre = qr/$re/ } })