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
416 0 3 0 $mode == 1 and $IPV6_COUNTRY_POSITION[$dbtype] == 0
419 3 0 0 $mode == 2 and $IPV6_COUNTRY_POSITION[$dbtype] == 0
422 3 0 0 $mode == 3 and $IPV6_REGION_POSITION[$dbtype] == 0
425 3 0 0 $mode == 4 and $IPV6_CITY_POSITION[$dbtype] == 0
428 3 0 0 $mode == 5 and $IPV6_ISP_POSITION[$dbtype] == 0
431 3 0 0 $mode == 6 and $IPV6_PROXYTYPE_POSITION[$dbtype] == 0
434 3 0 0 $mode == 8 and $IPV6_DOMAIN_POSITION[$dbtype] == 0
437 3 0 0 $mode == 9 and $IPV6_USAGETYPE_POSITION[$dbtype] == 0
440 3 0 0 $mode == 10 and $IPV6_ASN_POSITION[$dbtype] == 0
443 3 0 0 $mode == 11 and $IPV6_AS_POSITION[$dbtype] == 0
446 3 0 0 $mode == 12 and $IPV6_LASTSEEN_POSITION[$dbtype] == 0
449 3 0 0 $mode == 13 and $IPV6_THREAT_POSITION[$dbtype] == 0
452 3 0 0 $mode == 14 and $IPV6_PROVIDER_POSITION[$dbtype] == 0
498 1 0 3 $ipno >= $ipfrom and $ipno < $ipto
664 0 3 0 $mode == 1 and $IPV4_COUNTRY_POSITION[$dbtype] == 0
667 3 0 0 $mode == 2 and $IPV4_COUNTRY_POSITION[$dbtype] == 0
670 3 0 0 $mode == 3 and $IPV4_REGION_POSITION[$dbtype] == 0
673 3 0 0 $mode == 4 and $IPV4_CITY_POSITION[$dbtype] == 0
676 3 0 0 $mode == 5 and $IPV4_ISP_POSITION[$dbtype] == 0
679 3 0 0 $mode == 6 and $IPV4_PROXYTYPE_POSITION[$dbtype] == 0
682 3 0 0 $mode == 8 and $IPV4_DOMAIN_POSITION[$dbtype] == 0
685 3 0 0 $mode == 9 and $IPV4_USAGETYPE_POSITION[$dbtype] == 0
688 3 0 0 $mode == 10 and $IPV4_ASN_POSITION[$dbtype] == 0
691 3 0 0 $mode == 11 and $IPV4_AS_POSITION[$dbtype] == 0
694 3 0 0 $mode == 12 and $IPV4_LASTSEEN_POSITION[$dbtype] == 0
697 3 0 0 $mode == 13 and $IPV4_THREAT_POSITION[$dbtype] == 0
700 3 0 0 $mode == 14 and $IPV4_PROVIDER_POSITION[$dbtype] == 0
736 9 3 3 $ipno >= $ipfrom and $ipno < $ipto
1017 1 2 0 $ipnum >= '281470681743360' and $ipnum <= '281474976710655'
1022 1 2 0 $ipnum >= "4.25456804588344e+37" and $ipnum <= "4.25508727556929e+37"
1030 1 2 0 $ipnum >= "4.25404881619758e+37" and $ipnum <= "4.2540488241204e+37"

or 3 conditions

line l !l&&r !l&&!r condition
555 0 0 0 $countryshort eq "-" or $proxytype eq "-"
558 0 0 0 $proxytype eq "DCH" or $proxytype eq "SES"
616 0 0 0 $countryshort eq "-" or $proxytype eq "-"
619 0 0 0 $proxytype eq "DCH" or $proxytype eq "SES"
794 0 0 0 $proxytype eq "DCH" or $proxytype eq "SES"
851 0 0 0 $countryshort eq "-" or $proxytype eq "-"
854 0 0 0 $proxytype eq "DCH" or $proxytype eq "SES"
1118 3 3 0 $host =~ /^$IPv4_re$/ or $host =~ /^$IPv6_re$/
6 0 0 $host =~ /^$IPv4_re$/ or $host =~ /^$IPv6_re$/ or $host =~ /^\:\:$/
1133 0 0 12 $octet[$i] > 255 or $octet[$i] < 0
1144 3 0 0 $ip =~ /^$IPv6_re$/ or $ip =~ /^$IPv4_re$/