Condition Coverage

blib/lib/Validate/Simple.pm
Criterion Covered Total %
condition 85 102 83.3


and 3 conditions

line !l l&&!r l&&r condition
23 4 1937 1 defined $specs and ref $specs ne 'HASH'
34 4 0 1937 defined $specs and keys %$specs
355 14221 1896 0 exists $spec->{'of'} and not $self->validate_specs({'of', $spec->{'of'}}, \(my $r = 0), $p2v, $all_errors)
381 16344 1 34 exists $spec->{'required'} and $spec->{'required'}
410 14523 0 18694 exists $spec->{'required'} and $spec->{'required'}
432 11 0 11 exists $spec->{'required'} and $spec->{'required'}
448 37032 0 546 exists $spec->{'undef'} && $spec->{'undef'}
452 37032 199 347 $undef and not defined $value
539 31861 24 2843 exists $spec->{'of'} and $type ne 'spec'
572 2397 264 48 $type eq 'array' and not @$value
264 2362 35 $type eq 'hash' and not %$value
574 63 0 20 exists $spec->{'empty'} and $spec->{'empty'}
600 92 44 74 $_[0]->number($_[1]) && $_[1] > 0
604 92 31 106 $_[0]->number($_[1]) && $_[1] >= 0
608 92 62 74 $_[0]->number($_[1]) && $_[1] < 0
612 92 31 106 $_[0]->number($_[1]) && $_[1] <= 0
628 124 63 88 $_[0]->integer($_[1]) && $_[1] < 0
632 124 32 120 $_[0]->integer($_[1]) && $_[1] <= 0
648 33 7 16405 $_[0]->string($_[1]) && exists $_[2]{$_[1]}

or 2 conditions

line l !l condition
305 3589 1950 $path_to_var //= ''
360 1 0 $@ || 'Zombie error'
447 37578 0 $spec->{'type'} || 'any'
476 1635 324 $value // '[undef]'
484 106 0 $value // '[undef]'
492 30 0 $value // '[undef]'
500 132 0 $value // '[undef]'
508 72 0 $value // '[undef]'
515 48 0 $value // ''
516 24 0 $value // '[undef]'
523 48 0 $value // ''
524 24 0 $value // '[undef]'

or 3 conditions

line l !l&&r !l&&!r condition
263 1148 606 1851 $all_errors //= $self->{'all_errors'}
269 0 1910 2 $specs //= $self->{'specs'}
306 3589 614 1336 $all_errors //= $self->{'all_errors'}
413 30735 815 1667 $valid or $all_errors
549 768 68 86 $is_valid or $all_errors
562 3363 28 48 $is_valid or $all_errors
572 48 35 2626 $type eq 'array' and not @$value or $type eq 'hash' and not %$value