Condition Coverage

blib/lib/Config/Hosts.pm
Criterion Covered Total %
condition 22 35 62.8


and 3 conditions

line !l l&&!r l&&r condition
83 38 1 60 $ip =~ /^(\d+)\.(\d+)\.(\d+)\.(\d+)$/ && ($1 + 0 | $2 + 0 | $3 + 0 | $4 + 0) < 256
225 0 6 0 $params{'ip'} and $params{'hosts'}
348 1 3 0 $params{'ip'} and not is_valid_ip($params{'ip'})
367 2 1 1 $type == $TYPE_IP and $params{'ip'}
374 2 0 2 $type == $TYPE_IP and $params{'hosts'}
388 2 0 2 $type == $TYPE_HOST and $params{'ip'}
396 2 1 1 $type == $TYPE_HOST and $params{'hosts'}

or 2 conditions

line l !l condition
136 0 18 $comment ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
64 1 0 6 $params{'file'} || $DEFAULT_FILE
113 6 0 0 shift() || $$self{'_file'}
122 18 0 0 /^\s*(\d+\.\d+\.\d+\.\d+)\s+(\S.*)/ or /^\s*(\S*\:\S*\:\S*)\s+(\S.*)/
428 1 0 0 shift() || $$self{'_file'}