Branch Coverage

lib/CGI/FormBuilder/Field/select.pm
Criterion Covered Total %
branch 39 46 84.7


line true false branch
57 3 40 if ($self->other)
70 4 39 if $self->required
97 3 44 if $self->other
105 16 31 $self->multiple ? :
107 0 47 unless @opt
110 29 18 if ($self->{'_form'}->smartness and not $attr->{'multiple'} and $self->selectname ne 0)
116 2 27 $self->selectname =~ /\D+/ ? :
121 3 44 if ($self->other and $self->javascript)
145 307 142 unless (defined $n)
147 307 0 unless (defined $n)
148 12 295 $self->nameopts ? :
154 48 401 if ($optgroups)
155 10 38 if ($g and $g ne $lastgroup) { }
10 46 elsif (not $g and $lastgroup) { }
157 4 6 if $didgroup
159 10 0 if (UNIVERSAL::isa($optgroups, 'HASH')) { }
0 0 elsif ($self->nameopts) { }
161 4 6 exists $optgroups->{$g} ? :
169 6 4 if $didgroup
175 65 20 if (&ismember($o, @value) or not $foundit and $self->other and @value and not @opt)
185 449 0 $self->cleanopts ? :
191 0 47 if $didgroup
195 3 44 if $self->other