Branch Coverage

blib/lib/CXC/Data/Visitor.pm
Criterion Covered Total %
branch 87 110 79.0


line true false branch
119 19 90 if (exists $meta->{'seen'}{$refaddr})
121 0 19 is_coderef($cycle) ? :
126 1 18 if $lcycle eq "truncate"
127 1 17 if $lcycle eq "die"
130 0 17 unless $lcycle eq "continue"
154 0 110 unless --$revisit_limit
163 62 48 if ($is_hashref) { }
164 56 2 $sort_key_mode == 1 ? :
4 58 if ($sort_key_mode == 0) { }
171 2 46 $sort_idx_mode == 0 ? :
183 117 115 $is_hashref ? :
185 54 142 is_plain_arrayref($$vref) ? :
36 196 is_plain_hashref($$vref) ? :
193 9 223 if ($visit_element and (my $result = &$code($kydx, $vref, $context, \%meta)) != 2)
199 2 7 if $result == 4
200 2 5 if $result == 1
201 1 4 if $result == 32
205 3 1 if $result & 16
209 0 1 if not $revisit_element and !$result & 2
213 141 83 unless is_plain_refref($vref)
216 83 0 if (is_plain_arrayref($ref) or is_plain_hashref($ref))
218 22 58 if $result == 1
219 1 57 if $result == 32
220 1 56 if ($revisit_element)
223 0 1 if $result == 1
224 0 1 if $result == 32
225 0 1 if $result & '18446744073709551609'
231 1 78 if $rescan_container
233 0 78 unless $revisit_limit
249 0 6 unless --$revisit_limit
253 1 5 if $result == 32
255 1 4 if $result == 1
256 1 3 if $result == 16
260 0 3 if not $revisit_element and !$result & 2
264 0 3 if $status == 1
266 1 2 if ($revisit_element)
269 0 1 if $result == 1
270 1 0 if $result == 2
274 0 2 unless $revisit_limit
285 0 27 unless is_coderef($callback)
291 1 26 if (defined(my $sort_keys = delete $opts{'sort_keys'}))
293 0 1 if defined $opts{'key_sort'}
299 1 0 is_coderef($sort_keys) ? :
305 0 27 if defined $opts{'revisit_limit'} and not &looks_like_number($opts{'revisit_limit'}) && floor($opts{'revisit_limit'}) == $opts{'revisit_limit'}
326 1 1 $key_sort ? :
2 2 is_coderef($key_sort) ? :
4 23 defined $key_sort ? :
334 1 26 defined $idx_sort && is_coderef($idx_sort) ? :
339 5 22 if $visit == 8
341 0 27 unless $cycle =~ /\A die|continue|truncate \z/u
344 0 27 if %opts
352 5 22 if ($visit & 8) { }
358 0 23 unless --$revisit_limit
360 21 1 unless $completed == 32
362 0 21 unless $revisit_limit