Branch Coverage

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


line true false branch
16 2769 643 unless (@names)
17 2353 416 exists $param->{$root} ? :
23 0 669 if (/^(0|[1-9][0-9]*)\z/) { }
24 0 0 if ref $$ref ne 'ARRAY'
27 0 0 if $1 > $#{$$ref;}
32 46 623 if ref $$ref ne 'HASH' or not exists $$ref->{$_}
46 1203 489 unless (@names)
53 0 526 if (/^(0|[1-9][0-9]*)\z/) { }
54 0 0 unless defined $$ref
56 0 0 if ref $$ref ne 'ARRAY'
62 192 334 unless defined $$ref
64 0 526 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 2659 646 unless (@names)
133 0 674 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 646 28 if ($i == $#names)
145 84 562 if not ref $$ref or ref $$ref ne 'HASH'
147 502 60 exists $$ref->{$part} ? :