Branch Coverage

blib/lib/Data/PathSimple.pm
Criterion Covered Total %
branch 34 38 89.4


line true false branch
18 3 491 unless defined $root_path
24 3 488 unless @root_parts
27 854 858 if (ref $current_ref eq 'HASH') { }
856 2 elsif (ref $current_ref eq 'ARRAY') { }
28 852 2 if (exists $$current_ref{$current_part})
34 2 854 unless $current_part =~ /^\d+$/
36 852 2 if (exists $$current_ref[$current_part])
51 6 502 unless defined $root_path
57 6 496 unless @root_parts
63 624 628 if (ref $current_ref eq 'HASH') { }
624 4 elsif (ref $current_ref eq 'ARRAY') { }
64 12 612 unless (ref $$current_ref{$current_part})
65 0 12 $next_part =~ /^\d+$/ ? :
75 4 620 unless $current_part =~ /^\d+$/
77 8 612 unless (ref $$current_ref[$current_part])
78 8 0 $next_part =~ /^\d+$/ ? :
93 244 244 if (ref $current_ref eq 'HASH')
97 244 0 if (ref $current_ref eq 'ARRAY')
98 0 244 unless $last_part =~ /^\d+$/