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 244 2 0 scalar @_ == 1 and ref $_[0] ne 'HASH'
383 243 0 0 defined $self->item_id and not $self->item
411 174 1 96 $self->validated and not $self->no_update
412 174 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 281 2 0 $self->item_id and not $self->item
594 118 1 164 $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 156 $self->dependency || (return)

or 3 conditions

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