blib/lib/Data/Transpose/Validator.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 37 | 61 | 60.6 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
172 | 0 | 0 | 581 | $field and $option |
175 | 568 | 0 | 13 | $hash and ref $hash eq 'HASH' |
568 | 13 | 0 | $hash and ref $hash eq 'HASH' and exists $hash->{$option} | |
406 | 2 | 246 | 0 | exists $field->{'validator'} and $field->{'validator'} |
421 | 2 | 1 | 62 | ref $v and ref $v eq 'HASH' |
3 | 62 | 0 | ref $v and ref $v eq 'HASH' and exists $v->{'validator'} | |
50 | 9 | 3 | ref $v and ref $v eq 'HASH' and exists $v->{'validator'} and $v->{'validator'} eq 'Group' | |
581 | 0 | 0 | 11 | $name and not ref $name |
622 | 0 | 0 | 69 | $hash and ref $hash eq 'HASH' |
670 | 0 | 202 | 21 | ref $value eq '' and $value eq '' |
202 | 0 | 0 | ref $value eq 'HASH' and not %$value | |
202 | 0 | 0 | ref $value eq 'ARRAY' and not @$value | |
754 | 177 | 0 | 52 | $error and $field |
line | l | !l | condition |
---|---|---|---|
877 | 0 | 24 | shift() || ': ' |
878 | 0 | 24 | shift() || ', ' |
937 | 168 | 57 | $validator || 'Base' |
941 | 5 | 220 | $params->{'options'} || {} |
950 | 84 | 0 | $validator->{'options'} || {} |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
670 | 134 | 0 | 223 | not defined $value or ref $value eq '' and $value eq '' |
21 | 0 | 202 | not defined $value or ref $value eq '' and $value eq '' or ref $value eq 'HASH' and not %$value | |
0 | 0 | 202 | not defined $value or ref $value eq '' and $value eq '' or ref $value eq 'HASH' and not %$value or ref $value eq 'ARRAY' and not @$value | |
967 | 4 | 0 | 308 | $self->option('requireall') or $params->{'required'} |