Condition Coverage

blib/lib/HTML/FormHandler/Validate.pm
Criterion Covered Total %
condition 48 57 84.2


and 3 conditions

line !l l&&!r l&&r condition
30 703 2 31 defined $low and defined $high
32 2 2 27 $value >= $low && $value <= $high
59 989 0 88 not $field->has_input and $field->form
989 76 12 not $field->has_input and $field->form and $field->form->use_fields_for_input_without_param
64 18 14 69 $field->has_input && $field->input_defined
976 69 32 $field->required || $field->has_required_when && $field->match_when($field->required_when) and not $field->has_input && $field->input_defined
108 0 0 939 $field->has_value and defined $field->value
112 934 0 5 $field->has_deflate_value_method and not $field->has_errors
143 9596 5 0 $role->can('apply_list') and $role->has_apply_list
151 1165 3733 61 $meta->can('apply_list') and $meta->has_apply_list
198 81 2 18 $tobj->has_coercion and $tobj->validate($value)

or 3 conditions

line l !l&&r !l&&!r condition
21 113 90 736 $field->can('options') or $field->has_errors
64 98 220 759 $field->required || $field->has_required_when && $field->match_when($field->required_when)
79 2 1 34 $field->no_value_if_empty or $field->has_flag('is_contains')
92 939 0 138 $continue_validation or $field->validate_when_empty
173 94 15 0 $class eq 'MooseX::Types::TypeDecorator' || $class->isa('Type::Tiny')
182 8 20 1206 not ref $action or &$is_type($action)
213 1 38 62 $error_message ||= $tobj->validate($new_value)
238 1 0 0 $@ || $self->get_message('error_occurred')