Condition Coverage

lib/HTTP/ProxyPAC/Functions.pm
Criterion Covered Total %
condition 4 174 2.3


and 3 conditions

line !l l&&!r l&&r condition
43 5 0 2 $lh >= $ld && substr($host, $lh - $ld) eq $domain
82 0 8 0 validIP($pattern) and validIP($maskstr)
211 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'}
214 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
225 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
241 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
310 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'}
313 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
324 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
340 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
380 0 0 19 $_[0] =~ /^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/ && $1 <= 255 && $2 <= 255 && $3 <= 255 && $4 <= 255

or 3 conditions

line l !l&&r !l&&!r condition
56 0 0 0 $host eq $hostdom || rindex($hostdom, "$host.") == 0