Branch Coverage

blib/lib/Data/MuForm/Field/Select.pm
Criterion Covered Total %
branch 58 72 80.5


line true false branch
57 46 26 unless $self->multiple
58 0 26 if (not defined $value or $value eq '') { }
62 26 0 ref $value eq 'ARRAY' ? :
72 13 34 if ($self->multiple) { }
92 15 32 if ($self->options and $self->has_options)
95 42 5 if ($self->form and not exists $self->{'methods'}{'build_options'})
98 24 18 if (my $meth = $self->form->can($meth_name))
106 32 15 unless $self->has_options
111 1 6 ref $input eq 'ARRAY' ? :
7 16 if $self->multiple
133 20 108 if $self->options_from eq 'build' or $self->has_options and $self->do_not_reload
139 91 17 if (my $meth = $self->get_method('build_options')) { }
15 2 elsif ($self->form) { }
145 15 0 if $self->parent
147 0 15 if scalar @options
149 17 91 unless @options
158 35 56 ref $options[0] eq 'ARRAY' ? :
161 86 5 if (scalar @$opts)
163 0 86 if $self->methods->{'sort'}
179 3 4 if $self->has_empty_select
180 0 7 if defined $self->size
202 0 29 unless defined $input
204 2 27 if (ref $input eq 'ARRAY' and not $self->can('multiple') && $self->multiple) { }
1 36 elsif (ref $input ne 'ARRAY' and $self->multiple) { }
216 1 22 if $self->no_option_validation
222 6 63 if (exists $opt->{'group'}) { }
231 10 12 ref $value eq 'ARRAY' ? :
232 6 21 unless ($options{$value})
244 1 1 unless defined $value
245 0 2 unless defined $value
246 2 0 if ($self->multiple) { }
247 0 2 unless (ref $value eq 'ARRAY')
248 0 0 if ($self->has_transform_default_to_value) { }
262 4 4 if (exists $value_hash{$_->{'value'}})
265 2 2 unless keys %value_hash
273 0 0 if $_->{'value'} eq $value