Branch Coverage

lib/CGI/FormBuilder/Template/Builtin.pm
Criterion Covered Total %
branch 74 100 74.0


line true false branch
33 0 58 if @_ > 1
45 14 44 if (defined $hd)
47 14 0 if $form->title
51 4 10 if ($$form{'stylesheet'} and $$form{'stylesheet'} ne 1)
61 14 44 if $js
65 0 58 $font ? :
66 14 44 if (defined $hd)
68 0 14 if $font
69 14 0 if $form->title
74 14 44 if $js
78 8 50 if (my $fn = $form->name)
85 14 44 if $txt
89 58 0 if (my $st = $form->statetags)
95 4 54 if (my $ke = $form->keepextras)
105 167 2 if $field->type ne 'hidden'
115 56 2 if $table
120 9 158 if (my $set = $field->fieldset) { }
1 157 elsif ($lastset) { }
122 4 5 if ($set ne $lastset)
124 3 1 if ($lastset) { }
1 0 elsif ($table) { }
125 3 0 if $table
133 1 0 if ($html[-1] =~ /^
148 4 0 if defined $$legend{$set}
152 4 0 if $table
159 1 0 if $table
162 1 0 if $table
167 0 167 if $field->static > 1 and not $field->tag_value
169 165 2 if ($table) { }
175 2 163 if ($field->invalid) { }
34 129 elsif ($field->required and not $field->static) { }
187 2 163 if ($field->invalid)
190 11 154 if ($field->comment)
191 11 0 unless $field->static
202 0 2 if ($field->invalid) { }
0 2 elsif ($field->required and not $field->static) { }
212 0 2 if $field->invalid
213 0 2 if $field->comment
214 0 2 if $form->linebreaks
219 0 58 if ($lastset)
220 0 0 if $table
228 55 3 if ($buttons)
230 53 2 if ($table) { }
232 9 44 $c ? :
242 53 2 if ($table) { }
243 0 53 if $font
244 53 0 if $table
252 56 2 if $table
254 0 58 if $font and defined $hd
255 14 44 if defined $hd