Branch Coverage

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


line true false branch
29 3 3046 ref $value eq 'ARRAY' ? :
29 3655 ref $default eq 'ARRAY' ? :
151 7863 if ($submitted and defined $value and ref $value eq 'ARRAY' ? &any(sub { $_ eq $option->{'value'}; } , @$value) : $value eq $option->{'value'}) { }
4 7859 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'}) { }
3380 4479 elsif ($submitted) { }
191 4288 elsif (defined $default and ref $default eq 'ARRAY' ? &any(sub { $_ eq $option->{'value'}; } , @$default) : $default eq $option->{'value'}) { }
69 14 3939 if (exists $option->{'group'}) { }
72 8 6 if (defined $option->{'label'})