Branch Coverage

blib/lib/HTML/FormFu/Role/Element/Input.pm
Criterion Covered Total %
branch 24 36 66.6


line true false branch
65 0 1 if @_ == 1
67 0 1 if @_ > 2
69 1 0 if (defined $arg)
70 0 1 if &reftype($arg) ne 'ARRAY'
88 2 2 if (&reftype($item) eq 'HASH') { }
2 0 elsif (&reftype($item) eq 'ARRAY') { }
110 0 4 if &none(sub { $key eq $_; } , @ALLOWED_OPTION_KEYS)
113 0 2 if (defined $item->{'label_xml'}) { }
1 1 elsif (defined $item->{'label_loc'}) { }
120 1 1 if (defined $item->{'value_xml'}) { }
0 1 elsif (defined $item->{'value_loc'}) { }
127 0 2 unless (defined $item->{'value'})
137 0 1 if @_ > 2
141 1 0 if (defined $arg)
142 0 1 if &reftype($arg) ne 'ARRAY'
237 2 576 if ($render->{'datalist_options'})
249 575 3 if (defined $render->{'nested_name'})
255 355 223 if (defined $render->{'value'})