Branch Coverage

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


line true false branch
64 0 1 if @_ == 1
66 0 1 if @_ > 2
68 1 0 if (defined $arg)
69 0 1 if &reftype($arg) ne 'ARRAY'
87 2 2 if (&reftype($item) eq 'HASH') { }
2 0 elsif (&reftype($item) eq 'ARRAY') { }
109 0 4 if &none(sub { $key eq $_; } , @ALLOWED_OPTION_KEYS)
112 0 2 if (defined $item->{'label_xml'}) { }
1 1 elsif (defined $item->{'label_loc'}) { }
119 1 1 if (defined $item->{'value_xml'}) { }
0 1 elsif (defined $item->{'value_loc'}) { }
126 0 2 unless (defined $item->{'value'})
136 0 1 if @_ > 2
141 1 0 if (defined $arg)
142 0 1 if &reftype($arg) ne 'ARRAY'
232 2 581 if ($render->{'datalist_options'})
244 580 3 if (defined $render->{'nested_name'})
250 360 223 if (defined $render->{'value'})