Branch Coverage

blib/lib/FlyBy.pm
Criterion Covered Total %
branch 65 74 87.8


line true false branch
68 2 11 unless $whatsit eq 'HASH'
73 28 3 if (defined $v) { }
80 10 1 if ($add_it)
95 12 77 if (substr($value, 0, 1) eq $negation)
101 2 10 $negated ? :
12 49 unless $add_missing_key or exists $index_sets->{$key}
103 28 49 if ($add_missing_key) { }
109 10 67 if $negated
117 20 28 if (not &reftype($query_clauses)) { }
119 1 19 if defined $reduce_list
121 2 17 if $err
124 1 27 unless $query_clauses and (&reftype($query_clauses) // '') eq 'HASH' and keys %$query_clauses
126 2 7 unless not $reduce_list or (&reftype($reduce_list) // '') eq 'ARRAY' and scalar @$reduce_list
141 9 44 if ($whatsit and $whatsit eq 'ARRAY') { }
162 13 29 if ($reduce_list) { }
169 22 8 unless ($seen{$seen_key})
170 6 16 $key_count > 1 ? :
191 1 18 unless $query
199 17 95 if ($name eq 'EOI')
201 6 11 if (@clause and $in_reduce) { }
11 0 elsif (@clause) { }
209 2 93 if $name eq 'COMMA'
211 56 37 if ($name eq 'QUOTED_STRING') { }
5 32 elsif ($name eq 'AND') { }
4 28 elsif ($name eq 'OR') { }
17 11 elsif ($name eq 'EQUAL') { }
5 6 elsif ($name eq 'NOTEQUAL') { }
6 0 elsif ($name eq 'REDUCE') { }
212 5 51 $negated ? :
213 4 52 if ($in_or) { }
214 4 0 unless &reftype($clause[-1])
221 0 5 if $in_reduce or scalar @clause != $expected_length
225 0 4 if $in_reduce or scalar @clause != $expected_length
228 0 17 if $in_reduce or scalar @clause != $expected_length - 1
230 0 5 if $in_reduce or scalar @clause != $expected_length - 1
233 0 6 if $in_reduce
235 6 0 if @clause