Condition Coverage

blib/lib/HTML/FormBuilder/Validation.pm
Criterion Covered Total %
condition 39 57 68.4


and 3 conditions

line !l l&&!r l&&r condition
118 8 9 32 $data->{'input'} and $data->{'error'}{'id'}
120 40 0 0 eval {
130 17 0 32 defined $data->{'validation'} and $data->{'input'}
0 0 32 defined $data->{'validation'} and $data->{'input'} and $data->{'error'}{'id'}
234 3 0 4 defined $data->{'validation'} and $data->{'input'}
0 0 4 defined $data->{'validation'} and $data->{'input'} and $data->{'error'}{'id'}
2 0 1 defined $data->{'error'} and defined $data->{'error'}{'id'}
302 7 0 3 $validation->{'id'} and length $validation->{'id'} > 0
379 0 4 61 $validation->{'type'} and $validation->{'type'} =~ /(?:regexp|min_amount|max_amount|checkbox_checked)/
393 13 9 2 $validation->{'type'} eq "min_amount" and $field_value < $validation->{'amount'}
17 4 1 $validation->{'type'} eq "max_amount" and $field_value > $validation->{'amount'}
13 7 1 $validation->{'type'} eq "checkbox_checked" and not $field_value
398 37 0 0 $validation->{'error_if_true'} and $field_value =~ /$regexp/

or 2 conditions

line l !l condition
83 5 2 $self->_build_javascript_validation({'input_field', $input_field}) || ''
152 2 0 $self->{'__input_csrftoken'} // ""
388 56 5 $self->get_field_value($input_element_id) || ''

or 3 conditions

line l !l&&r !l&&!r condition
385 19 42 0 $validation->{'id'} || $input_element->[0]{'id'}
393 2 0 22 $validation->{'type'} eq "min_amount" and $field_value < $validation->{'amount'} or $validation->{'type'} eq "max_amount" and $field_value > $validation->{'amount'}
398 0 31 6 $validation->{'error_if_true'} || $field_value =~ /$regexp/
0 6 31 $validation->{'error_if_true'} and $field_value =~ /$regexp/ or not $validation->{'error_if_true'} || $field_value =~ /$regexp/