Branch Coverage

blib/lib/HTML/FormFu/Element/Select.pm
Criterion Covered Total %
branch 16 16 100.0


line true false branch
30 3 3050 ref $value eq 'ARRAY' ? :
29 3655 ref $default eq 'ARRAY' ? :
151 7867 if ($submitted and defined $value and ref $value eq 'ARRAY' ? &any(sub { $_ eq $option->{'value'}; } , @$value) : $value eq $option->{'value'}) { }
4 7863 elsif ($submitted and $self->retain_default and !defined($value) || $value eq $HTML::FormFu::Element::Select::EMPTY_STR and defined $self->value and $self->value eq $option->{'value'}) { }
3384 4479 elsif ($submitted) { }
191 4288 elsif (defined $default and ref $default eq 'ARRAY' ? &any(sub { $_ eq $option->{'value'}; } , @$default) : $default eq $option->{'value'}) { }
70 14 3943 if (exists $option->{'group'}) { }
73 8 6 if (defined $option->{'label'})