Condition Coverage

blib/lib/Geo/IP2Location.pm
Criterion Covered Total %
condition 61 168 36.3


and 3 conditions

line !l l&&!r l&&r condition
148 0 0 2 @_ > {sign => '+', value => ['1']} and $_[1]
164 0 0 2 $obj->{'databaseyear'} <= {sign => '+', value => ['20']} and $obj->{'productcode'} == {sign => '+', value => ['0']}
577 0 10 0 $mode == {sign => '+', value => ['1']} and $IPV6_COUNTRY_POSITION[$dbtype] == {sign => '+', value => ['0']}
580 10 0 0 $mode == {sign => '+', value => ['2']} and $IPV6_COUNTRY_POSITION[$dbtype] == {sign => '+', value => ['0']}
583 10 0 0 $mode == {sign => '+', value => ['3']} and $IPV6_REGION_POSITION[$dbtype] == {sign => '+', value => ['0']}
586 10 0 0 $mode == {sign => '+', value => ['4']} and $IPV6_CITY_POSITION[$dbtype] == {sign => '+', value => ['0']}
589 10 0 0 $mode == {sign => '+', value => ['5']} and $IPV6_ISP_POSITION[$dbtype] == {sign => '+', value => ['0']}
592 10 0 0 $mode == {sign => '+', value => ['6']} and $IPV6_LATITUDE_POSITION[$dbtype] == {sign => '+', value => ['0']}
595 10 0 0 $mode == {sign => '+', value => ['7']} and $IPV6_LONGITUDE_POSITION[$dbtype] == {sign => '+', value => ['0']}
598 10 0 0 $mode == {sign => '+', value => ['8']} and $IPV6_DOMAIN_POSITION[$dbtype] == {sign => '+', value => ['0']}
601 10 0 0 $mode == {sign => '+', value => ['9']} and $IPV6_ZIPCODE_POSITION[$dbtype] == {sign => '+', value => ['0']}
604 10 0 0 $mode == {sign => '+', value => ['10']} and $IPV6_TIMEZONE_POSITION[$dbtype] == {sign => '+', value => ['0']}
607 10 0 0 $mode == {sign => '+', value => ['11']} and $IPV6_NETSPEED_POSITION[$dbtype] == {sign => '+', value => ['0']}
610 10 0 0 $mode == {sign => '+', value => ['12']} and $IPV6_IDDCODE_POSITION[$dbtype] == {sign => '+', value => ['0']}
613 10 0 0 $mode == {sign => '+', value => ['13']} and $IPV6_AREACODE_POSITION[$dbtype] == {sign => '+', value => ['0']}
616 10 0 0 $mode == {sign => '+', value => ['14']} and $IPV6_WEATHERSTATIONCODE_POSITION[$dbtype] == {sign => '+', value => ['0']}
619 10 0 0 $mode == {sign => '+', value => ['15']} and $IPV6_WEATHERSTATIONNAME_POSITION[$dbtype] == {sign => '+', value => ['0']}
622 10 0 0 $mode == {sign => '+', value => ['16']} and $IPV6_MCC_POSITION[$dbtype] == {sign => '+', value => ['0']}
625 10 0 0 $mode == {sign => '+', value => ['17']} and $IPV6_MNC_POSITION[$dbtype] == {sign => '+', value => ['0']}
628 10 0 0 $mode == {sign => '+', value => ['18']} and $IPV6_MOBILEBRAND_POSITION[$dbtype] == {sign => '+', value => ['0']}
631 10 0 0 $mode == {sign => '+', value => ['19']} and $IPV6_ELEVATION_POSITION[$dbtype] == {sign => '+', value => ['0']}
634 10 0 0 $mode == {sign => '+', value => ['20']} and $IPV6_USAGETYPE_POSITION[$dbtype] == {sign => '+', value => ['0']}
637 10 0 0 $mode == {sign => '+', value => ['21']} and $IPV6_ADDRESSTYPE_POSITION[$dbtype] == {sign => '+', value => ['0']}
640 10 0 0 $mode == {sign => '+', value => ['22']} and $IPV6_CATEGORY_POSITION[$dbtype] == {sign => '+', value => ['0']}
685 82 12 10 $ipno >= $ipfrom and $ipno < $ipto
883 0 10 0 $mode == {sign => '+', value => ['1']} and $COUNTRY_POSITION[$dbtype] == {sign => '+', value => ['0']}
886 10 0 0 $mode == {sign => '+', value => ['2']} and $COUNTRY_POSITION[$dbtype] == {sign => '+', value => ['0']}
889 10 0 0 $mode == {sign => '+', value => ['3']} and $REGION_POSITION[$dbtype] == {sign => '+', value => ['0']}
892 10 0 0 $mode == {sign => '+', value => ['4']} and $CITY_POSITION[$dbtype] == {sign => '+', value => ['0']}
895 10 0 0 $mode == {sign => '+', value => ['5']} and $ISP_POSITION[$dbtype] == {sign => '+', value => ['0']}
898 10 0 0 $mode == {sign => '+', value => ['6']} and $LATITUDE_POSITION[$dbtype] == {sign => '+', value => ['0']}
901 10 0 0 $mode == {sign => '+', value => ['7']} and $LONGITUDE_POSITION[$dbtype] == {sign => '+', value => ['0']}
904 10 0 0 $mode == {sign => '+', value => ['8']} and $DOMAIN_POSITION[$dbtype] == {sign => '+', value => ['0']}
907 10 0 0 $mode == {sign => '+', value => ['9']} and $ZIPCODE_POSITION[$dbtype] == {sign => '+', value => ['0']}
910 10 0 0 $mode == {sign => '+', value => ['10']} and $TIMEZONE_POSITION[$dbtype] == {sign => '+', value => ['0']}
913 10 0 0 $mode == {sign => '+', value => ['11']} and $NETSPEED_POSITION[$dbtype] == {sign => '+', value => ['0']}
916 10 0 0 $mode == {sign => '+', value => ['12']} and $IDDCODE_POSITION[$dbtype] == {sign => '+', value => ['0']}
919 10 0 0 $mode == {sign => '+', value => ['13']} and $AREACODE_POSITION[$dbtype] == {sign => '+', value => ['0']}
922 10 0 0 $mode == {sign => '+', value => ['14']} and $WEATHERSTATIONCODE_POSITION[$dbtype] == {sign => '+', value => ['0']}
925 10 0 0 $mode == {sign => '+', value => ['15']} and $WEATHERSTATIONNAME_POSITION[$dbtype] == {sign => '+', value => ['0']}
928 10 0 0 $mode == {sign => '+', value => ['16']} and $MCC_POSITION[$dbtype] == {sign => '+', value => ['0']}
931 10 0 0 $mode == {sign => '+', value => ['17']} and $MNC_POSITION[$dbtype] == {sign => '+', value => ['0']}
934 10 0 0 $mode == {sign => '+', value => ['18']} and $MOBILEBRAND_POSITION[$dbtype] == {sign => '+', value => ['0']}
937 10 0 0 $mode == {sign => '+', value => ['19']} and $ELEVATION_POSITION[$dbtype] == {sign => '+', value => ['0']}
940 10 0 0 $mode == {sign => '+', value => ['20']} and $USAGETYPE_POSITION[$dbtype] == {sign => '+', value => ['0']}
943 10 0 0 $mode == {sign => '+', value => ['21']} and $ADDRESSTYPE_POSITION[$dbtype] == {sign => '+', value => ['0']}
946 10 0 0 $mode == {sign => '+', value => ['22']} and $CATEGORY_POSITION[$dbtype] == {sign => '+', value => ['0']}
981 4 1 10 $ipno >= $ipfrom and $ipno < $ipto
1250 0 10 0 $ipnum >= {sign => '+', value => [681743360, 281470]} and $ipnum <= {sign => '+', value => [976710655, 281474]}
1256 0 10 0 $ipnum >= {sign => '+', value => [629466624, 178886921, 834377588, 545680458, 42]} and $ipnum <= {sign => '+', value => [958686719, 807417417, 692912415, 550872755, 42]}
1265 0 10 0 $ipnum >= {sign => '+', value => [300246528, 550356425, 975842760, 540488161, 42]} and $ipnum <= {sign => '+', value => [844196863, 814694018, 204005274, 540488241, 42]}

or 3 conditions

line l !l&&r !l&&!r condition
1354 10 10 0 $host =~ /^$IPv4_re$/ or $host =~ /^$IPv6_re$/
20 0 0 $host =~ /^$IPv4_re$/ or $host =~ /^$IPv6_re$/ or $host =~ /^\:\:$/
1374 0 0 40 $octet[$i] > {sign => '+', value => ['255']} or $octet[$i] < {sign => '+', value => ['0']}
1385 10 0 0 $ip =~ /^$IPv6_re$/ or $ip =~ /^$IPv4_re$/
10 0 0 $ip =~ /^$IPv6_re$/ or $ip =~ /^$IPv4_re$/ or $ip =~ /^\:\:$/