Branch Coverage

blib/lib/Data/Leaf/Walker.pm
Criterion Covered Total %
branch 42 50 84.0


line true false branch
117 49 233 unless (@{$$self{'_data_stack'};})
190 282 149 if ($type eq 'ARRAY') { }
146 3 elsif ($type eq 'HASH') { }
227 0 54 unless (defined $twig)
234 21 33 if ($type eq 'HASH') { }
33 0 elsif ($type eq 'ARRAY') { }
265 0 3 unless defined $twig
269 3 0 if ($type eq 'HASH') { }
0 0 elsif ($type eq 'ARRAY') { }
303 39 12 if ($type eq 'ARRAY') { }
9 3 elsif ($type eq 'HASH') { }
305 36 3 if (exists $$data[$key]) { }
316 0 9 if (exists $$data{$key}) { }
354 9 12 if (ref $data eq 'HASH')
385 5 33 if (CORE::keys %opts)
409 193 425 unless (defined $key)
416 151 42 if (@{$$self{'_data_stack'};}) { }
433 84 341 if (defined $max_depth and @{$$self{'_key_path'};} + 1 >= $max_depth)
436 56 28 wantarray ? :
440 165 173 if (defined $val and ref $val eq 'HASH' || ref $val eq 'ARRAY')
449 20 156 if (defined $min_depth and @{$$self{'_key_path'};} + 1 < $min_depth)
456 106 50 wantarray ? :
463 247 371 if (ref $data eq 'HASH') { }
371 0 elsif (ref $data eq 'ARRAY') { }
471 259 112 if ($$array_tracker{$data} <= $#{$data;}) { }