Branch Coverage

blib/lib/Grep/Query/Parser.pm
Criterion Covered Total %
branch 53 66 80.3


line true false branch
26 9 431 unless ($PARSER)
32 0 9 unless defined $PARSER
48 14 426 unless ($parsedQuery)
55 14 0 unless $parsedQuery
65 424 0 if ($oldFieldRefCount)
69 1 423 if $newFieldRefCount and $newFieldRefCount != $oldFieldRefCount
85 5059 1757 if ($r)
87 296 4763 if ($r eq 'ARRAY') { }
3419 1344 elsif ($r eq 'HASH') { }
104 845 395 if ref $alt eq 'ARRAY' and scalar @$alt == 0
105 99 0 if &blessed($alt) and $alt->{'rparen'}
106 296 944 if ($keep)
108 0 296 if exists $parsedQuery->{'__ALT'}
118 869 5080 if ($k eq 'field_op_value_test')
122 17 852 if ($op eq 'true') { }
13 839 elsif ($op eq 'false') { }
1 838 elsif ($op eq 'defined') { }
18 820 elsif ($op eq 'path') { }
0 820 elsif ($op eq 'exists') { }
2 818 elsif ($op eq 'type') { }
1 817 elsif ($op =~ /^size(.+)/) { }
478 339 elsif ($op =~ /^(?:regexp|=~)$/) { }
126 213 elsif ($op =~ /^(?:eq|ne|[lg][te])$/) { }
213 0 elsif ($op =~ /^(?:[=!<>]=|<|>)$/) { }
132 2 2 defined $_[0] ? :
142 0 0 defined $_[0] && ref $_[0] eq 'HASH' ? :
147 0 2 unless $v =~ /^(?:scalar|array|hash)$/i
148 5 1 defined $_[0] ? :
154 0 1 unless &looks_like_number($possibleNumber)
163 0 5 $reftype eq 'HASH' ? :
0 5 $reftype eq 'ARRAY' ? :
180 1 212 unless &looks_like_number($possibleNumber)
209 1 477 unless (eval { do { $cre = qr/$re/ } })