Branch Coverage

blib/lib/HTML/FormHandler/Render/Simple.pm
Criterion Covered Total %
branch 43 56 76.7


line true false branch
30 5 1 unless $self->has_form_errors
41 2 94 if (ref \$field eq 'SCALAR')
44 0 96 unless defined $field and $field->isa('HTML::FormHandler::Field')
48 5 91 if $widget eq 'no_render'
51 90 1 if ($self->can($form_render)) { }
1 0 elsif ($field->can('render')) { }
66 0 67 if $field->uwrapper eq 'none'
67 0 67 unless $field->do_wrapper
72 0 65 $field->has_flag('is_repeatable') ? :
76 2 65 if ($wrapper_tag eq 'fieldset') { }
57 16 elsif (not $field->get_tag('label_none') and $field->do_label and length $field->label > 0) { }
97 19 24 if $field->size
98 2 41 if $field->maxlength
110 0 0 if $field->size
111 0 0 if $field->maxlength
136 7 7 if $multiple == 1
137 7 7 if $field->size
142 0 14 if (defined $field->empty_select)
147 7 7 if $multiple
153 4 4 if (defined $option->{'disabled'} and $option->{'disabled'})
156 47 0 if (defined $fif)
157 8 39 if ($multiple and exists $fif_lookup{$value}) { }
4 35 elsif ($fif eq $value) { }
166 0 47 if $field->localize_labels
180 4 6 if $field->fif eq $field->checkbox_value
195 4 6 if $option->{'value'} eq $field->fif
238 17 64 if $field->tag_exists('label_after')
240 0 81 $field->tag_exists('label_tag') ? :