Branch Coverage

blib/lib/HTML/FormHandler/Widget/Form/Simple.pm
Criterion Covered Total %
branch 30 36 83.3


line true false branch
13 1 0 if (keys %args > 0)
15 0 1 unless $self->can($key)
30 3 64 if ($self->DOES('HTML::FormHandler::Result')) { }
41 6 61 if ($form->has_render_list) { }
44 4 12 if ($form->field_in_index($fb)) { }
48 0 4 unless $fld_result
55 0 12 unless $block
80 4 70 if $wtag ne 'fieldset'
86 70 4 if $wtag eq 'fieldset'
95 63 11 unless $self->do_form_wrapper
106 2 60 if $self->get_tag('no_form_message_div')
110 0 0 if ($self->has_error_message and $result->has_errors || $result->has_form_errors)
115 3 57 if ($result->has_form_errors)
119 1 59 if ($self->has_success_message and $result->validated)
125 1 59 if ($self->has_info_message and $self->info_message)
140 66 3 if $wtag eq 'fieldset'
142 3 66 if $wtag ne 'fieldset'
150 62 7 unless $self->do_form_wrapper