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 65 if ($self->DOES('HTML::FormHandler::Result')) { }
41 7 61 if ($form->has_render_list) { }
44 5 14 if ($form->field_in_index($fb)) { }
48 0 5 unless $fld_result
55 0 14 unless $block
80 4 71 if $wtag ne 'fieldset'
86 71 4 if $wtag eq 'fieldset'
95 64 11 unless $self->do_form_wrapper
106 2 61 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 58 if ($result->has_form_errors)
119 1 60 if ($self->has_success_message and $result->validated)
125 1 60 if ($self->has_info_message and $self->info_message)
140 67 3 if $wtag eq 'fieldset'
142 3 67 if $wtag ne 'fieldset'
150 63 7 unless $self->do_form_wrapper