Branch Coverage

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


line true false branch
71 1 0 if (@args) { }
72 1 0 @args == 1 ? :
81 0 0 unless (@{$self->_elements;})
94 2 45 if (@_ > 1)
100 2 0 if (@{$self->_elements;})
129 7 10 if (defined(my $default = $self->default))
131 5 2 if (not $self->form->submitted or $self->render_processed_value)
139 2 5 if ($default ne '' and &any(sub { $_->{'value'} eq $default; } , @$select_options)) { }
170 27 33 if (defined(my $value = $self->$method))
175 3 12 unless (@{$select_element->options;})
182 1 14 if (defined(my $default = $select->{'default'}))
204 4 11 if (defined(my $default = $text->{'default'}))
233 0 52 if (defined(my $default_name = $options->{'name'})) { }
262 4 7 if (defined $text_value and length $text_value) { }
6 1 elsif (defined $select_value and length $select_value) { }
282 0 6 $args ? :