Branch Coverage

lib/CGI/FormBuilder/Field/checkbox.pm
Criterion Covered Total %
branch 35 48 72.9


line true false branch
51 4 12 if ($self->options == 1) { }
78 0 12 if ($self->other)
92 0 12 if $self->required
120 0 16 if $self->other
127 12 4 if ($self->columns > 0)
133 0 16 unless @opt
136 36 10 if ($checkbox_table)
137 28 8 if $checkbox_col % $self->columns == 0
146 36 10 unless (defined $n)
148 36 0 unless (defined $n)
149 0 36 $self->nameopts ? :
153 10 36 ismember($o, @value) ? :
158 4 42 if (@opt == 1) { }
163 0 42 $o eq $self->othername ? :
174 0 46 if ($self->other and $self->javascript)
176 0 0 if ($n eq $$self{'_form'}{'messages'}->form_other_default)
190 36 10 $checkbox_table ? :
193 40 6 $self->cleanopts ? :
198 0 46 if $self->linebreaks
200 36 10 if ($checkbox_table)
203 28 8 if $checkbox_col % $self->columns == 0
207 0 16 if $checkbox_table and $checkbox_col % $self->columns > 0
208 12 4 if $checkbox_table
211 0 16 if $self->other