Branch Coverage

blib/lib/HTML/FormFu/Element/ComboBox.pm
Criterion Covered Total %
branch 25 32 78.1


line true false branch
72 1 0 if (@args) { }
73 1 0 @args == 1 ? :
82 0 0 unless (@{$self->_elements;})
95 2 45 if (@_ > 1)
101 2 0 if (@{$self->_elements;})
130 7 10 if (defined(my $default = $self->default))
132 5 2 if (not $self->form->submitted or $self->render_processed_value)
140 2 5 if ($default ne '' and &any(sub { $_->{'value'} eq $default; } , @$select_options)) { }
171 27 33 if (defined(my $value = $self->$method))
176 3 12 unless (@{$select_element->options;})
183 1 14 if (defined(my $default = $select->{'default'}))
205 4 11 if (defined(my $default = $text->{'default'}))
234 0 52 if (defined(my $default_name = $options->{'name'})) { }
263 4 7 if (defined $text_value and length $text_value) { }
6 1 elsif (defined $select_value and length $select_value) { }
283 0 6 $args ? :