Condition Coverage

blib/lib/Geo/IP2Proxy.pm
Criterion Covered Total %
condition 44 132 33.3


and 3 conditions

line !l l&&!r l&&r condition
96 0 0 2 @_ > 1 and $_[1]
112 0 0 2 $obj->{'databaseyear'} <= 20 and $obj->{'productcode'} == 0
415 0 3 0 $mode == 1 and $IPV6_COUNTRY_POSITION[$dbtype] == 0
418 3 0 0 $mode == 2 and $IPV6_COUNTRY_POSITION[$dbtype] == 0
421 3 0 0 $mode == 3 and $IPV6_REGION_POSITION[$dbtype] == 0
424 3 0 0 $mode == 4 and $IPV6_CITY_POSITION[$dbtype] == 0
427 3 0 0 $mode == 5 and $IPV6_ISP_POSITION[$dbtype] == 0
430 3 0 0 $mode == 6 and $IPV6_PROXYTYPE_POSITION[$dbtype] == 0
433 3 0 0 $mode == 8 and $IPV6_DOMAIN_POSITION[$dbtype] == 0
436 3 0 0 $mode == 9 and $IPV6_USAGETYPE_POSITION[$dbtype] == 0
439 3 0 0 $mode == 10 and $IPV6_ASN_POSITION[$dbtype] == 0
442 3 0 0 $mode == 11 and $IPV6_AS_POSITION[$dbtype] == 0
445 3 0 0 $mode == 12 and $IPV6_LASTSEEN_POSITION[$dbtype] == 0
448 3 0 0 $mode == 13 and $IPV6_THREAT_POSITION[$dbtype] == 0
451 3 0 0 $mode == 14 and $IPV6_PROVIDER_POSITION[$dbtype] == 0
496 1 0 3 $ipno >= $ipfrom and $ipno < $ipto
666 0 3 0 $mode == 1 and $IPV4_COUNTRY_POSITION[$dbtype] == 0
669 3 0 0 $mode == 2 and $IPV4_COUNTRY_POSITION[$dbtype] == 0
672 3 0 0 $mode == 3 and $IPV4_REGION_POSITION[$dbtype] == 0
675 3 0 0 $mode == 4 and $IPV4_CITY_POSITION[$dbtype] == 0
678 3 0 0 $mode == 5 and $IPV4_ISP_POSITION[$dbtype] == 0
681 3 0 0 $mode == 6 and $IPV4_PROXYTYPE_POSITION[$dbtype] == 0
684 3 0 0 $mode == 8 and $IPV4_DOMAIN_POSITION[$dbtype] == 0
687 3 0 0 $mode == 9 and $IPV4_USAGETYPE_POSITION[$dbtype] == 0
690 3 0 0 $mode == 10 and $IPV4_ASN_POSITION[$dbtype] == 0
693 3 0 0 $mode == 11 and $IPV4_AS_POSITION[$dbtype] == 0
696 3 0 0 $mode == 12 and $IPV4_LASTSEEN_POSITION[$dbtype] == 0
699 3 0 0 $mode == 13 and $IPV4_THREAT_POSITION[$dbtype] == 0
702 3 0 0 $mode == 14 and $IPV4_PROVIDER_POSITION[$dbtype] == 0
737 9 3 3 $ipno >= $ipfrom and $ipno < $ipto
977 1 2 0 $ipnum >= 281470681743360 and $ipnum <= 281474976710655
982 1 2 0 $ipnum >= 4.2545680458834378e+37 and $ipnum <= 4.2550872755692912e+37
990 1 2 0 $ipnum >= 4.2540488161975843e+37 and $ipnum <= 4.2540488241204e+37

or 3 conditions

line l !l&&r !l&&!r condition
557 0 0 0 $countryshort eq '-' or $proxytype eq '-'
560 0 0 0 $proxytype eq 'DCH' or $proxytype eq 'SES'
618 0 0 0 $countryshort eq '-' or $proxytype eq '-'
621 0 0 0 $proxytype eq 'DCH' or $proxytype eq 'SES'
800 0 0 0 $proxytype eq 'DCH' or $proxytype eq 'SES'
857 0 0 0 $countryshort eq '-' or $proxytype eq '-'
860 0 0 0 $proxytype eq 'DCH' or $proxytype eq 'SES'
1078 3 3 0 $host =~ /^$IPv4_re$/ or $host =~ /^$IPv6_re$/
6 0 0 $host =~ /^$IPv4_re$/ or $host =~ /^$IPv6_re$/ or $host =~ /^\:\:$/
1093 0 0 12 $octet[$i] > 255 or $octet[$i] < 0
1104 3 0 0 $ip =~ /^$IPv6_re$/ or $ip =~ /^$IPv4_re$/