Condition Coverage

blib/lib/Net/Whois/IANA.pm
Criterion Covered Total %
condition 74 177 41.8


and 2 conditions

line l !l condition
148 0 0 @seg && @seg < $max && 1
179 0 0 ref $source eq "HASH" and scalar grep({$_->[0][0] if ref $_ and ref $_ eq "ARRAY" and @{$_;} and ref $_->[0] and ref $_->[0] eq "ARRAY" and @{$_->[0];};} values %{$source;} == scalar keys %{$source;})
243 0 2 $query{'abuse'} = $query{$qkey} and last
303 0 0 close $sock and return "permission", "denied"
356 0 0 close $sock and return "permission", "denied"
428 0 0 close $sock and return "permission", "denied"
492 0 0 close $sock and return "permission", "denied"
497 0 0 close $sock and return ()

and 3 conditions

line !l l&&!r l&&r condition
108 1 1 20 $ip && $ip =~ /^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)$/ && ($1 + 0 | $2 + 0 | $3 + 0 | $4 + 0) < 256
179 0 0 0 ref $_ and ref $_ eq "ARRAY"
0 0 0 ref $_ and ref $_ eq "ARRAY" and @{$_;}
0 0 0 ref $_ and ref $_ eq "ARRAY" and @{$_;} and ref $_->[0]
0 0 0 ref $_ and ref $_ eq "ARRAY" and @{$_;} and ref $_->[0] and ref $_->[0] eq "ARRAY"
0 0 0 ref $_ and ref $_ eq "ARRAY" and @{$_;} and ref $_->[0] and ref $_->[0] eq "ARRAY" and @{$_->[0];}
228 0 0 17 $query_code && ref $query_code eq 'CODE'
243 256 6 2 $qkey =~ /abuse/i and $query{$qkey} =~ /\@/
246 0 3 9 $query{'fullinfo'} and $query{'fullinfo'} =~ /(\S*abuse\S*\@\S+)/m
255 0 2 0 defined $query{'cidr'} and $query{'cidr'} =~ /\,/
280 0 14 0 $query{'permission'} and $query{'permission'} eq "denied"
318 0 4 0 defined $query{'remarks'} and $query{'remarks'} =~ /The country is really world wide/
0 4 0 defined $query{'netname'} and $query{'netname'} =~ /IANA-BLK/
0 4 0 defined $query{'netname'} and $query{'netname'} =~ /AFRINIC-NET-TRANSFERRED/
0 4 0 defined $query{'country'} and $query{'country'} =~ /world wide/
381 109 6 1 $lc_field eq "country" and defined $query{$lc_field}
394 1 2 0 defined $query{'remarks'} and $query{'remarks'} =~ /address range is not administered by APNIC|This network in not allocated/
0 3 0 defined $query{'descr'} and $query{'descr'} =~ /not allocated to|by APNIC|placeholder reference/i
457 0 2 1 $query{'orgid'} and $query{'orgid'} =~ /^\s*RIPE|LACNIC|APNIC|AFRINIC\s*$/
465 0 1 1 defined $query{'cidr'} and $query{'cidr'} =~ /\,/
503 103 2 4 $field eq "country" and $query{'country'}
522 0 1 0 $query{'nserver'} and $query{'nserver'} =~ /\.(\w\w)$/
0 1 0 $query{'descr'} and $query{'descr'} =~ /\s(\w\w)$/
550 2 0 0 defined $query{'remarks'} and $query{'remarks'} =~ /country is really worldwide/
0 2 0 defined $query{'descr'} and $query{'descr'} =~ /Here for in-addr\.arpa authentication/

or 2 conditions

line l !l condition
168 2 0 {%IANA} || (return 0)

or 3 conditions

line l !l&&r !l&&!r condition
60 0 9 0 ref $proto || $proto
73 2 17 0 $port ||= $WHOIS_PORT
74 2 17 0 $timeout ||= $WHOIS_TIMEOUT
119 0 0 0 $ip =~ /^:[^:]/ or $ip =~ /[^:]:$/
143 0 0 0 length $seg == 0 or length $seg > 4
200 14 0 2 $param{'-whois'} || $param{'-mywhois'}
246 0 1 2 $query{'email'} or $query{'e-mail'}
1 0 2 $query{'email'} or $query{'e-mail'} or $query{'orgtechemail'}
251 1 0 0 $query{'email'} || $query{'e-mail'} || $query{'orgtechemail'}
274 17 27 20 $self->source_connect($source_name) || Carp::carp("Connection failed to $source_name." && (next))
304 45 38 88 /^(\%|\#)/ or not /\:/
318 0 0 4 defined $query{'remarks'} and $query{'remarks'} =~ /The country is really world wide/ or defined $query{'netname'} and $query{'netname'} =~ /IANA-BLK/
0 0 4 defined $query{'remarks'} and $query{'remarks'} =~ /The country is really world wide/ or defined $query{'netname'} and $query{'netname'} =~ /IANA-BLK/ or defined $query{'netname'} and $query{'netname'} =~ /AFRINIC-NET-TRANSFERRED/
0 0 4 defined $query{'remarks'} and $query{'remarks'} =~ /The country is really world wide/ or defined $query{'netname'} and $query{'netname'} =~ /IANA-BLK/ or defined $query{'netname'} and $query{'netname'} =~ /AFRINIC-NET-TRANSFERRED/ or defined $query{'country'} and $query{'country'} =~ /world wide/
0 4 0 $query{'inet6num'} || $query{'inetnum'}
334 0 4 0 $query{'inet6num'} || $query{'inetnum'}
394 0 0 3 defined $query{'remarks'} and $query{'remarks'} =~ /address range is not administered by APNIC|This network in not allocated/ or defined $query{'descr'} and $query{'descr'} =~ /not allocated to|by APNIC|placeholder reference/i
0 3 0 $query{'inet6num'} || $query{'inetnum'}
406 0 3 0 $query{'inet6num'} || $query{'inetnum'}
430 72 46 153 /^\#/ or not /\:/
434 3 0 150 $field eq "OrgName" or $field eq "CustName"
492 0 0 170 /^\%201/ or /^\% Query rate limit exceeded/
0 0 170 /^\%201/ or /^\% Query rate limit exceeded/ or /^\% Not assigned to LACNIC/
0 0 170 /^\%201/ or /^\% Query rate limit exceeded/ or /^\% Not assigned to LACNIC/ or /\% Permission denied/
499 38 23 109 /^\%/ or not /\:/
550 0 0 2 defined $query{'remarks'} and $query{'remarks'} =~ /country is really worldwide/ or defined $query{'descr'} and $query{'descr'} =~ /Here for in-addr\.arpa authentication/
552 0 2 0 $query{'inet6num'} or $query{'inetnum'}
558 0 2 0 $query{'inet6num'} || $query{'inetnum'}