Condition Coverage

blib/lib/HTML/FormFu/Element/Select.pm
Criterion Covered Total %
condition 17 24 70.8


and 3 conditions

line !l l&&!r l&&r condition
29 4479 486 3049 $submitted and defined $value
4965 3049 0 $submitted and defined $value and ref $value eq 'ARRAY' ? &any(sub { $_ eq $option->{'value'}; } , @$value) : $value eq $option->{'value'}
4479 3372 12 $submitted and $self->retain_default
7851 12 0 $submitted and $self->retain_default and !defined($value) || $value eq $HTML::FormFu::Element::Select::EMPTY_STR
0 0 12 $submitted and $self->retain_default and !defined($value) || $value eq $HTML::FormFu::Element::Select::EMPTY_STR and defined $self->value
0 8 4 $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'}
795 3684 0 defined $default and ref $default eq 'ARRAY' ? &any(sub { $_ eq $option->{'value'}; } , @$default) : $default eq $option->{'value'}

or 3 conditions

line l !l&&r !l&&!r condition
29 6 6 0 !defined($value) || $value eq $HTML::FormFu::Element::Select::EMPTY_STR