Condition Coverage

blib/lib/HTML/FormHandler/Validate.pm
Criterion Covered Total %
condition 47 57 82.4


and 3 conditions

line !l l&&!r l&&r condition
30 700 2 31 defined $low and defined $high
32 2 2 27 $value >= $low && $value <= $high
59 985 0 87 not $field->has_input and $field->form
985 75 12 not $field->has_input and $field->form and $field->form->use_fields_for_input_without_param
64 18 14 68 $field->has_input && $field->input_defined
972 68 32 $field->required || $field->has_required_when && $field->match_when($field->required_when) and not $field->has_input && $field->input_defined
108 0 0 935 $field->has_value and defined $field->value
112 930 0 5 $field->has_deflate_value_method and not $field->has_errors
143 9548 5 0 $role->can('apply_list') and $role->has_apply_list
151 1159 3712 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 89 733 $field->can('options') or $field->has_errors
64 97 0 975 $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 935 0 137 $continue_validation or $field->validate_when_empty
173 94 15 0 $class eq 'MooseX::Types::TypeDecorator' || $class->isa('Type::Tiny')
182 8 20 1202 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')