Condition Coverage

blib/lib/Config/Validator.pm
Criterion Covered Total %
condition 46 68 67.6


and 3 conditions

line !l l&&!r l&&r condition
182 1 2 343 $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'
362 43 6 1 defined $$data{$field} and not $$data{'type'} =~ /^(string|number|integer|list.*|table.*)$/
365 42 7 0 defined $$data{$field} and not $$data{'type'} =~ /^(string|number|integer|list.*|table.*)$/
368 46 3 0 defined $$data{$field} and not $$data{'type'} =~ /^(string|table.*)$/
630 6 31 7 defined $min and not $value >= $min
632 0 30 7 defined $max and not $value <= $max
676 52 4 1 defined $$schema{'match'} and not $key =~ /$$schema{'match'}/
750 4 7 56 not @errors and defined $$schema{'match'}
11 53 3 not @errors and defined $$schema{'match'} and not $data =~ /$$schema{'match'}/
814 5 0 2 $blessed and $data->isa($1)

or 2 conditions

line l !l condition
561 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)'
475 0 0 0 not defined $opt1 or defined treeval($hash, $opt1)
491 0 0 0 not defined $opt1 or defined treeval($hash, $opt1)
552 2 16 0 $type ||= $$schema{'type'}
645 10 0 3 defined $$schema{'min'} or defined $$schema{'max'}
670 0 6 38 defined $$schema{'min'} or defined $$schema{'max'}
747 7 0 60 defined $$schema{'min'} or defined $$schema{'max'}
763 11 0 57 defined $$schema{'min'} or defined $$schema{'max'}
858 169 267 204 $type =~ /^(string|boolean|number|integer)$/ or $type =~ /^(duration|size|hostname|ipv[46])$/