Branch Coverage

lib/HTTP/ProxyPAC/Functions.pm
Criterion Covered Total %
branch 6 152 3.9


line true false branch
78 5 3 unless (validIP($ipaddr))
80 0 5 unless ($ipaddr)
82 0 8 unless (validIP($pattern) and validIP($maskstr))
97 10 0 if ($ipad)
110 3 0 $ipad ? :
156 0 0 if $_[0] ne 'GMT'
158 0 0 if $_[0] eq 'GMT'
161 0 0 $gmt eq 'GMT' ? :
163 0 0 if ($wd2 eq '') { }
167 0 0 if ($wd{$wd1} < $wd{$wd2}) { }
192 0 0 if ($_[0] eq 'GMT') { }
0 0 elsif (exists $mon{$_[0]}) { }
0 0 elsif ($_[0] > 31) { }
207 0 0 exists $args{'gmt'} ? :
208 0 0 exists $args{'gmt'} ? :
209 0 0 exists $args{'gmt'} ? :
211 0 0 if (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 elsif (exists $args{'mon1'} and exists $args{'year1'} and exists $args{'mon2'} and exists $args{'year2'}) { }
0 0 elsif (exists $args{'day1'} and exists $args{'mon1'} and exists $args{'day2'} and exists $args{'mon2'}) { }
0 0 elsif (exists $args{'year1'} and exists $args{'year2'}) { }
0 0 elsif (exists $args{'mon1'} and exists $args{'mon2'}) { }
0 0 elsif (exists $args{'day1'} and exists $args{'day2'}) { }
0 0 elsif (exists $args{'year1'}) { }
0 0 elsif (exists $args{'mon1'}) { }
0 0 elsif (exists $args{'day1'}) { }
214 0 0 if ($args{'year1'} < $year and $args{'year2'} > $year) { }
0 0 elsif ($args{'year1'} == $year and $args{'mon1'} <= $mon) { }
0 0 elsif ($args{'year2'} == $year and $args{'mon2'} >= $mon) { }
225 0 0 if ($args{'year1'} < $year and $args{'year2'} > $year) { }
0 0 elsif ($args{'year1'} == $year and $args{'mon1'} < $mon) { }
0 0 elsif ($args{'year2'} == $year and $args{'mon2'} > $mon) { }
0 0 elsif ($args{'year1'} == $year and $args{'mon1'} == $mon and $args{'day1'} <= $mday) { }
0 0 elsif ($args{'year2'} == $year and $args{'mon2'} == $mon and $args{'day2'} >= $mday) { }
241 0 0 if ($args{'mon1'} < $mon and $args{'mon2'} > $mon) { }
0 0 elsif ($args{'mon1'} == $mon and $args{'day1'} <= $mday) { }
0 0 elsif ($args{'mon2'} == $mon and $args{'day2'} >= $mday) { }
251 0 0 if $tyear == $year
256 0 0 if $tmon == $mon
261 0 0 if $tmday == $mday
265 0 0 $args{'year1'} == $year ? :
267 0 0 $args{'mon1'} == $mon ? :
269 0 0 $args{'day1'} == $mday ? :
285 0 0 if $_[$#_] eq 'GMT'
287 0 0 if ($#_ == 0) { }
0 0 elsif ($#_ == 1) { }
0 0 elsif ($#_ == 3) { }
0 0 elsif ($#_ == 5) { }
306 0 0 exists $args{'gmt'} ? :
307 0 0 exists $args{'gmt'} ? :
308 0 0 exists $args{'gmt'} ? :
310 0 0 if (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 elsif (exists $args{'min1'} and exists $args{'hour1'} and exists $args{'min2'} and exists $args{'hour2'}) { }
0 0 elsif (exists $args{'sec1'} and exists $args{'min1'} and exists $args{'sec2'} and exists $args{'min2'}) { }
0 0 elsif (exists $args{'hour1'} and exists $args{'hour2'}) { }
0 0 elsif (exists $args{'min1'} and exists $args{'min2'}) { }
0 0 elsif (exists $args{'sec1'} and exists $args{'sec2'}) { }
0 0 elsif (exists $args{'hour1'}) { }
0 0 elsif (exists $args{'min1'}) { }
0 0 elsif (exists $args{'sec1'}) { }
313 0 0 if ($args{'hour1'} < $hour and $args{'hour2'} > $hour) { }
0 0 elsif ($args{'hour1'} == $hour and $args{'min1'} <= $min) { }
0 0 elsif ($args{'hour2'} == $hour and $args{'min2'} >= $min) { }
324 0 0 if ($args{'hour1'} < $hour and $args{'hour2'} > $hour) { }
0 0 elsif ($args{'hour1'} == $hour and $args{'min1'} < $min) { }
0 0 elsif ($args{'hour2'} == $hour and $args{'min2'} > $min) { }
0 0 elsif ($args{'hour1'} == $hour and $args{'min1'} == $min and $args{'sec1'} <= $sec) { }
0 0 elsif ($args{'hour2'} == $hour and $args{'min2'} == $min and $args{'sec2'} >= $sec) { }
340 0 0 if ($args{'min1'} < $min and $args{'min2'} > $min) { }
0 0 elsif ($args{'min1'} == $min and $args{'sec1'} <= $sec) { }
0 0 elsif ($args{'min2'} == $min and $args{'sec2'} >= $sec) { }
350 0 0 if $thour == $hour
355 0 0 if $tmin == $min
360 0 0 if $tsec == $sec
364 0 0 $args{'hour1'} == $hour ? :
366 0 0 $args{'min1'} == $min ? :
368 0 0 $args{'sec1'} == $sec ? :