Condition Coverage

blib/lib/Config/Validator.pm
Criterion Covered Total %
condition 46 71 64.7


and 3 conditions

line !l l&&!r l&&r condition
182 1 2 338 $value && !ref($value) && $value eq 'true'
189 1 2 1 $value && !ref($value) && $value eq 'false'
237 1 0 4 @args == 1 and ref $args[0] eq 'HASH'
363 43 6 1 defined $data->{$field} and not $data->{'type'} =~ /^(string|number|integer|list.*|table.*)$/
366 42 7 0 defined $data->{$field} and not $data->{'type'} =~ /^(string|number|integer|list.*|table.*)$/
369 46 3 0 defined $data->{$field} and not $data->{'type'} =~ /^(string|table.*)$/
632 6 31 7 defined $min and not $value >= $min
634 0 30 7 defined $max and not $value <= $max
680 52 4 1 defined $schema->{'match'} and not $key =~ /$schema->{'match'}/
755 4 7 56 not @errors and defined $schema->{'match'}
11 53 3 not @errors and defined $schema->{'match'} and not $data =~ /$schema->{'match'}/x
816 5 0 2 $blessed and $data->isa($1)

or 2 conditions

line l !l condition
563 6 6 &reftype($data) || ''

or 3 conditions

line l !l&&r !l&&!r condition
425 0 0 0 $type ||= $schema->{'type'}
432 0 0 0 $type =~ /^isa\(.+\)$/ or $type eq 'table(string)'
0 0 0 $type =~ /^isa\(.+\)$/ or $type eq 'table(string)' or $type =~ /^(duration|hostname|ipv[46]|regexp|size)$/
477 0 0 0 not defined $opt1 or defined &treeval($hash, $opt1)
493 0 0 0 not defined $opt1 or defined &treeval($hash, $opt1)
554 2 16 0 $type ||= $schema->{'type'}
649 10 0 3 defined $schema->{'min'} or defined $schema->{'max'}
674 0 6 38 defined $schema->{'min'} or defined $schema->{'max'}
751 7 0 60 defined $schema->{'min'} or defined $schema->{'max'}
767 11 0 59 defined $schema->{'min'} or defined $schema->{'max'}
860 171 267 204 $type =~ /^(string|boolean|number|integer)$/ or $type =~ /^(duration|size|hostname|ipv[46])$/