Condition Coverage

blib/lib/HTTP/ProxyAutoConfig.pm
Criterion Covered Total %
condition 48 237 20.2


and 3 conditions

line !l l&&!r l&&r condition
170 0 0 3 defined $url and $url ne ''
176 1 0 2 not $url =~ m[^[a-z]+://] and -e $url
182 0 0 2 $rsize = read($f, $function, $size) and $rsize == $size
241 0 0 0 defined $http_host and defined $http_port
275 550 3 5 $subpiece eq '=' and $variable =~ /^\w/
280 72 482 0 $quoted == 0 and $subpiece eq '+'
283 96 114 344 $blockComment == 0 and $lineComment == 0
210 294 50 $blockComment == 0 and $lineComment == 0 and $subpiece =~ /(\"|\')/
286 72 480 2 $quoted == 0 and $subpiece =~ m[/\*]
72 473 7 $quoted == 0 and $subpiece =~ m[//]
449 94 2 $blockComment == 1 and $subpiece =~ m[\*/]
317 0 0 445 $blockComment == 0 and $lineComment == 0
0 395 50 $blockComment == 0 and $lineComment == 0 and $subpiece =~ /(\"|\')/
320 72 357 16 $quoted == 0 and exists $vars{$subpiece}
368 13 8 9 $1 eq ')' and --$parenCt <= 0
391 0 0 21 $_[0] =~ /^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/ && $1 <= 255 && $2 <= 255 && $3 <= 255 && $4 <= 255
417 2 0 1 $lh >= $ld && substr($host, $lh - $ld) eq $domain
456 0 8 0 validIP($pattern) and validIP($maskstr)
585 0 0 0 exists $args{'day1'} and exists $args{'mon1'}
0 0 0 exists $args{'day1'} and exists $args{'mon1'} and exists $args{'year1'}
0 0 0 exists $args{'day1'} and exists $args{'mon1'} and exists $args{'year1'} and exists $args{'day2'}
0 0 0 exists $args{'day1'} and exists $args{'mon1'} and exists $args{'year1'} and exists $args{'day2'} and exists $args{'mon2'}
0 0 0 exists $args{'day1'} and exists $args{'mon1'} and exists $args{'year1'} and exists $args{'day2'} and exists $args{'mon2'} and exists $args{'year2'}
0 0 0 exists $args{'mon1'} and exists $args{'year1'}
0 0 0 exists $args{'mon1'} and exists $args{'year1'} and exists $args{'mon2'}
0 0 0 exists $args{'mon1'} and exists $args{'year1'} and exists $args{'mon2'} and exists $args{'year2'}
0 0 0 exists $args{'day1'} and exists $args{'mon1'}
0 0 0 exists $args{'day1'} and exists $args{'mon1'} and exists $args{'day2'}
0 0 0 exists $args{'day1'} and exists $args{'mon1'} and exists $args{'day2'} and exists $args{'mon2'}
0 0 0 exists $args{'year1'} and exists $args{'year2'}
0 0 0 exists $args{'mon1'} and exists $args{'mon2'}
0 0 0 exists $args{'day1'} and exists $args{'day2'}
588 0 0 0 $args{'year1'} < $year and $args{'year2'} > $year
0 0 0 $args{'year1'} == $year and $args{'mon1'} <= $mon
0 0 0 $args{'year2'} == $year and $args{'mon2'} >= $mon
599 0 0 0 $args{'year1'} < $year and $args{'year2'} > $year
0 0 0 $args{'year1'} == $year and $args{'mon1'} < $mon
0 0 0 $args{'year2'} == $year and $args{'mon2'} > $mon
0 0 0 $args{'year1'} == $year and $args{'mon1'} == $mon
0 0 0 $args{'year1'} == $year and $args{'mon1'} == $mon and $args{'day1'} <= $mday
0 0 0 $args{'year2'} == $year and $args{'mon2'} == $mon
0 0 0 $args{'year2'} == $year and $args{'mon2'} == $mon and $args{'day2'} >= $mday
615 0 0 0 $args{'mon1'} < $mon and $args{'mon2'} > $mon
0 0 0 $args{'mon1'} == $mon and $args{'day1'} <= $mday
0 0 0 $args{'mon2'} == $mon and $args{'day2'} >= $mday
684 0 0 0 exists $args{'sec1'} and exists $args{'min1'}
0 0 0 exists $args{'sec1'} and exists $args{'min1'} and exists $args{'hour1'}
0 0 0 exists $args{'sec1'} and exists $args{'min1'} and exists $args{'hour1'} and exists $args{'sec2'}
0 0 0 exists $args{'sec1'} and exists $args{'min1'} and exists $args{'hour1'} and exists $args{'sec2'} and exists $args{'min2'}
0 0 0 exists $args{'sec1'} and exists $args{'min1'} and exists $args{'hour1'} and exists $args{'sec2'} and exists $args{'min2'} and exists $args{'hour2'}
0 0 0 exists $args{'min1'} and exists $args{'hour1'}
0 0 0 exists $args{'min1'} and exists $args{'hour1'} and exists $args{'min2'}
0 0 0 exists $args{'min1'} and exists $args{'hour1'} and exists $args{'min2'} and exists $args{'hour2'}
0 0 0 exists $args{'sec1'} and exists $args{'min1'}
0 0 0 exists $args{'sec1'} and exists $args{'min1'} and exists $args{'sec2'}
0 0 0 exists $args{'sec1'} and exists $args{'min1'} and exists $args{'sec2'} and exists $args{'min2'}
0 0 0 exists $args{'hour1'} and exists $args{'hour2'}
0 0 0 exists $args{'min1'} and exists $args{'min2'}
0 0 0 exists $args{'sec1'} and exists $args{'sec2'}
687 0 0 0 $args{'hour1'} < $hour and $args{'hour2'} > $hour
0 0 0 $args{'hour1'} == $hour and $args{'min1'} <= $min
0 0 0 $args{'hour2'} == $hour and $args{'min2'} >= $min
698 0 0 0 $args{'hour1'} < $hour and $args{'hour2'} > $hour
0 0 0 $args{'hour1'} == $hour and $args{'min1'} < $min
0 0 0 $args{'hour2'} == $hour and $args{'min2'} > $min
0 0 0 $args{'hour1'} == $hour and $args{'min1'} == $min
0 0 0 $args{'hour1'} == $hour and $args{'min1'} == $min and $args{'sec1'} <= $sec
0 0 0 $args{'hour2'} == $hour and $args{'min2'} == $min
0 0 0 $args{'hour2'} == $hour and $args{'min2'} == $min and $args{'sec2'} >= $sec
714 0 0 0 $args{'min1'} < $min and $args{'min2'} > $min
0 0 0 $args{'min1'} == $min and $args{'sec1'} <= $sec
0 0 0 $args{'min2'} == $min and $args{'sec2'} >= $sec

or 3 conditions

line l !l&&r !l&&!r condition
293 94 114 335 $blockComment == 1 or $lineComment == 1
352 0 25 9 $1 eq q['] or $1 eq '"'
0 9 0 $3 or slide_lp_thru_rp($finalFunction)
368 13 0 8 $1 eq '"' or $1 eq q[']
382 0 3 3 not $1 or $1 eq ';'
3 0 0 $1 eq '"' or $1 eq q[']
430 0 0 0 $host eq $hostdom || rindex($hostdom, "$host.") == 0