Branch Coverage

blib/lib/HTML/FormFu/Role/NestedHashUtils.pm
Criterion Covered Total %
branch 22 56 39.2


line true false branch
16 2733 655 unless (@names)
17 2350 383 exists $param->{$root} ? :
23 0 681 if (/^(0|[1-9][0-9]*)\z/) { }
24 0 0 if ref $$ref ne 'ARRAY'
27 0 0 if $1 > $#{$$ref;}
32 49 632 if ref $$ref ne 'HASH' or not exists $$ref->{$_}
46 1187 504 unless (@names)
53 0 541 if (/^(0|[1-9][0-9]*)\z/) { }
54 0 0 unless defined $$ref
56 0 0 if ref $$ref ne 'ARRAY'
62 200 341 unless defined $$ref
64 0 541 if ref $$ref ne 'HASH'
79 0 0 unless (@names)
89 0 0 if ($name =~ /^(0|[1-9][0-9]*)\z/) { }
90 0 0 unless defined $$ref
92 0 0 if ref $$ref ne 'ARRAY'
97 0 0 if ($i == $#names)
102 0 0 unless defined $$ref
104 0 0 if ref $$ref ne 'HASH'
107 0 0 if ($i == $#names) { }
124 2576 659 unless (@names)
133 0 687 if ($part =~ /^(0|[1-9][0-9]*)\z/) { }
134 0 0 if ref $$ref ne 'ARRAY'
137 0 0 if ($i == $#names)
138 0 0 $1 > $$ref->[$1] ? :
144 659 28 if ($i == $#names)
145 85 574 if not ref $$ref or ref $$ref ne 'HASH'
147 511 63 exists $$ref->{$part} ? :