Condition Coverage

blib/lib/HTML/FormHandler/Field/Select.pm
Criterion Covered Total %
condition 32 49 65.3


and 2 conditions

line l !l condition
347 0 5 ref $value eq 'ARRAY' and scalar @$value

and 3 conditions

line !l l&&!r l&&r condition
50 0 59 42 $self->options and $self->has_options
71 12 38 51 $self->form and $self->form->can($set_options)
73 0 49 2 $attr and $attr->isa('Moose::Meta::Method::Accessor')
143 0 0 0 $field->widget eq 'Select' and $size
193 0 2 19 $self->can('multiple') && $self->multiple
92 19 2 ref $value eq 'ARRAY' and not $self->can('multiple') && $self->multiple
19 91 1 ref $value ne 'ARRAY' and $self->multiple
236 20 0 0 defined $self->default and not $result->has_value
246 111 13 1 defined $self->default and not $result->has_value
258 75 3 1 defined $self->default and not $result->has_value
267 88 72 0 $self->has_options and $self->do_not_reload
344 124 0 5 $self->has_many and $self->multiple
347 2 0 3 ref $value eq 'ARRAY' and scalar @$value and ref $value->[0] eq 'HASH'

or 2 conditions

line l !l condition
144 0 0 $field->options || []

or 3 conditions

line l !l&&r !l&&!r condition
70 0 101 0 $set_options ||= 'options_' . HTML::FormHandler::Field::convert_full_name($self->full_name)
267 64 0 160 $self->options_from eq 'build' or $self->has_options and $self->do_not_reload