Condition Coverage

blib/lib/Validate/Simple.pm
Criterion Covered Total %
condition 53 70 75.7


and 3 conditions

line !l l&&!r l&&r condition
22 3 486 0 defined $specs and ref $specs ne 'HASH'
31 3 0 486 defined $specs and keys %$specs
289 4435 500 0 exists $spec->{'of'} and not $self->validate_specs({'of', $spec->{'of'}}, $p2v)
336 35796 0 5490 exists $spec->{'required'} and $spec->{'required'}
370 10727 0 114 exists $spec->{'undef'} && $spec->{'undef'}
374 10727 36 78 $undef and not defined $value
458 12 0 6 exists $spec->{'empty'} and $spec->{'empty'}
489 32 16 25 $_[0]->number($_[1]) && $_[1] > 0
493 32 11 36 $_[0]->number($_[1]) && $_[1] >= 0
497 32 22 25 $_[0]->number($_[1]) && $_[1] < 0
501 32 11 36 $_[0]->number($_[1]) && $_[1] <= 0
517 44 23 30 $_[0]->integer($_[1]) && $_[1] < 0
521 44 12 41 $_[0]->integer($_[1]) && $_[1] <= 0
537 13 3 4944 $_[0]->string($_[1]) && exists $_[2]{$_[1]}

or 2 conditions

line l !l condition
258 500 979 $path_to_var //= ''
369 10841 0 $spec->{'type'} || 'any'
391 445 108 $value // '[undef]'
398 30 0 $value // '[undef]'
406 10 0 $value // '[undef]'
414 44 0 $value // '[undef]'
422 24 0 $value // '[undef]'
429 16 0 $value // ''
430 8 0 $value // '[undef]'
437 16 0 $value // ''
438 8 0 $value // '[undef]'

or 3 conditions

line l !l&&r !l&&!r condition
224 0 486 4 $specs //= $self->{'specs'}
310 5419 483 0 $skip_specs_validation or $self->validate_specs($specs)