Branch Coverage

lib/CGI/FormBuilder/Template/Div.pm
Criterion Covered Total %
branch 37 80 46.2


line true false branch
33 0 1 if @_ > 1
45 0 1 if (defined $hd)
47 0 0 if $form->title
51 0 0 if ($form->{'stylesheet'} and $form->{'stylesheet'} ne 1)
61 1 0 if $js
65 0 1 $font ? :
66 0 1 if (defined $hd)
68 0 0 if $font
69 0 0 if $form->title
74 1 0 if $js
78 1 0 if $txt
82 1 0 if (my $st = $form->statetags)
88 1 0 if (my $ke = $form->keepextras)
98 4 0 if $field->type ne 'hidden'
104 1 0 if $div
112 2 2 if (my $set = $field->fieldset) { }
1 1 elsif ($lastset) { }
114 2 0 if ($set ne $lastset)
116 1 1 if ($lastset) { }
124 1 0 if ($html[-1] =~ /^
140 2 0 if defined $legend->{$set}
147 1 0 if $div
154 0 4 if $field->static > 1 and not $field->tag_value
166 0 4 if ($field->invalid) { }
1 3 elsif ($field->required and not $field->static) { }
178 0 4 if ($field->invalid)
181 0 4 if ($field->comment)
182 0 0 unless $field->static
193 0 1 if ($lastset)
198 1 0 if $div
203 1 0 if $reset or $slist
205 0 1 if ($reset)
208 0 0 $c ? :
212 0 0 if $font
216 1 0 if (@$slist)
219 1 0 $c ? :
224 0 3 if $font
230 1 0 if $reset or $slist
234 0 1 if $font and defined $hd
235 0 1 if defined $hd