Condition Coverage

blib/lib/HTML/FormHandler/Field.pm
Criterion Covered Total %
condition 80 134 59.7


and 3 conditions

line !l l&&!r l&&r condition
69 53 0 0 $self->parent and $self->parent->result
124 1501 7 0 $self->inactive and not $self->_active
128 38 805 656 $self->has_result and $self->has_input
843 5 651 $self->has_result and $self->has_input and not $self->fif_from_value
842 6 0 $self->fif_from_value and not defined $lresult->value
218 0 498 0 $self->form && $self->form->html_prefix
266 0 0 1 $self->form and $self->form->block_exists($block_name)
284 0 0 1089 scalar @ns and ref $ns[0] eq 'ARRAY'
318 0 346 26 $self->form and $self->form->has_flag('is_html5')
411 0 543 26 $self->form and $self->form->has_flag('is_html5')
467 60 0 0 exists $attr->{'id'} && !$self->get_tag('no_wrapper_id')
537 0 60 $self->has_flag('is_compound') and not exists $attr->{'id'} && !$self->get_tag('no_wrapper_id')
522 70 1068 17 $self->form and $self->form->can($set_validate)
540 70 1082 7 $self->form and $self->form->can($set_default)
603 1 432 1 $self->form and $self->form->can('render_filter')
672 28 473 0 $self->form and $self->form->can('localize_meth')
728 59 71 1 $self->has_form and $self->form->_has_form_message($msg)
776 1155 5 4 $self->disabled and $self->has_init_value
795 0 106 6 $self->form and $self->form->use_fields_for_input_without_param
840 173 4113 1400 defined $parent_name and length $parent_name
857 0 1 0 defined $parent_accessor and length $parent_accessor
917 0 0 0 ref $_ && $_->isa('DateTime')

or 2 conditions

line l !l condition
225 83 0 (shift())->widget_wrapper || ''
227 16 0 (shift())->widget || ''
482 0 0 $self->get_tag('wrapper_tag') || 'div'
494 13 409 $self->get_tag('label_tag') || 'label'
736 0 0 $self->messages || {}
737 0 0 $self->my_class_messages || {}
937 0 0 $self->required || '0'
939 0 0 $self->widget || ''
964 0 0 $widget_wrapper ||= 'Simple'
975 0 0 $indent ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
84 1849 0 1 $self->has_result or not $self->form
94 7618 0 10 $self->has_result or not $self->form
126 1308 191 1 $result or $self->has_result
127 1308 191 0 $result || $self->result
128 651 0 848 $self->has_result and $self->has_input and not $self->fif_from_value or $self->fif_from_value and not defined $lresult->value
299 55 0 4548 $self->inactive && !$self->_active || !$self->inactive && $self->has__active && $self->_active == 0
391 24 0 0 $result ||= $self->result
408 473 96 0 $result ||= $self->result
441 406 95 0 $result ||= $self->result
458 489 108 0 $result ||= $self->result
475 4 20 553 $result->has_error_results or $result->has_errors
520 1 1154 0 $set_validate ||= 'validate_' . convert_full_name($self->full_name)
539 0 1159 0 $set_default ||= 'default_' . convert_full_name($self->full_name)
585 146 2 839 ref $_ or not defined $_
900 1 106 177 $self->has_deflation || $self->has_deflate_method
963 0 0 0 $widget_wrapper ||= $self->form->widget_wrapper