Branch Coverage

blib/lib/HTML/FormFu/Role/Element/Group.pm
Criterion Covered Total %
branch 58 76 76.3


line true false branch
74 25 216 if @_ == 1
76 0 216 if @_ > 2
78 216 0 if (defined $arg)
79 0 216 if &reftype($arg) ne 'ARRAY'
84 6 210 if ($self->empty_first)
115 38 3836 if (&reftype($item) eq 'HASH') { }
3836 0 elsif (&reftype($item) eq 'ARRAY') { }
140 1 85 if &none(sub { $key eq $_; } , @ALLOWED_OPTION_KEYS)
144 20 65 if ($short =~ s/attributes/attrs/)
146 19 55 if $cmp eq $key
148 1 54 if $cmp eq $short
154 11 25 if (exists $item->{'group'})
163 26 10 unless (exists $item->{'attributes'})
167 1 25 exists $item->{'attrs'} ? :
170 3 33 if (exists $item->{'attributes_xml'}) { }
1 32 elsif (exists $item->{'attrs_xml'}) { }
182 32 4 unless (exists $item->{'container_attributes'})
186 0 32 exists $item->{'container_attrs'} ? :
189 0 36 if (exists $item->{'container_attributes_xml'}) { }
0 36 elsif (exists $item->{'container_attrs_xml'}) { }
202 34 2 unless (exists $item->{'label_attributes'})
206 0 34 exists $item->{'label_attrs'} ? :
209 0 36 if (exists $item->{'label_attributes_xml'}) { }
0 36 elsif (exists $item->{'label_attrs_xml'}) { }
222 2 34 if (defined $item->{'label_xml'}) { }
1 33 elsif (defined $item->{'label_loc'}) { }
229 2 34 if (defined $item->{'value_xml'}) { }
0 34 elsif (defined $item->{'value_loc'}) { }
236 12 24 unless (defined $item->{'value'})
246 0 55 if @_ > 2
250 55 0 if (defined $arg)
251 0 55 if &reftype($arg) ne 'ARRAY'
266 14 41 if ($self->empty_first)
279 0 3 if @_ > 2
282 3 0 if (defined $arg)
283 0 3 if &reftype($arg) ne 'ARRAY'
289 0 3 if @values < 2
372 29 8155 if (exists $opt->{'group'})