Condition Coverage

blib/lib/HTML/FormHandler.pm
Criterion Covered Total %
condition 46 68 67.6


and 3 conditions

line !l l&&!r l&&r condition
282 0 0 0 $self->form and $self->form->block_exists($block_name)
366 246 2 0 scalar @_ == 1 and ref $_[0] ne 'HASH'
383 245 0 0 defined $self->item_id and not $self->item
411 177 1 96 $self->validated and not $self->no_update
412 177 1 96 $self->validated and not $self->no_update
422 7 0 5 $self->validated and not $self->no_update
436 71 23 2 $self->has_repeatable_fields and $self->item
444 3 5 1 $sub_field->has_flag('is_compound') and $sub_field->has_primary_key
584 284 2 0 $self->item_id and not $self->item
594 119 1 166 $self->has_params and not $self->has_posted
697 2 0 0 $self->field($name)->type eq 'Boolean' and $value == 0
702 0 0 6 $field and not $field->required

or 2 conditions

line l !l condition
685 9 158 $self->dependency || (return)

or 3 conditions

line l !l&&r !l&&!r condition
224 79 7 0 $result ||= $self->result
239 15 0 0 $result ||= $self->result
378 0 245 3 $self->no_widgets or $self->widget_form eq 'Simple'
381 0 1 244 $self->has_active or $self->has_inactive
1 2 242 $self->has_active or $self->has_inactive or $self->has_flag('is_wizard')
390 0 0 0 $self->init_object || $self->item
1 9 234 $self->item || $self->init_object
563 12 4 4 $self->has_error_fields || $self->has_form_errors
596 1 0 0 $self->init_object || $self->item
11 43 231 $self->item || $self->init_object