Condition Coverage

blib/lib/Net/Whois/IANA.pm
Criterion Covered Total %
condition 77 177 43.5


and 2 conditions

line l !l condition
156 0 0 @seg && @seg < $max && 1
187 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;})
251 0 2 $query{'abuse'} = $query{$qkey} and last
311 0 0 close $sock and return "permission", "denied"
364 0 0 close $sock and return "permission", "denied"
436 0 0 close $sock and return "permission", "denied"
500 0 0 close $sock and return "permission", "denied"
505 0 0 close $sock and return ()

and 3 conditions

line !l l&&!r l&&r condition
116 1 1 20 $ip && $ip =~ /^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)$/ && ($1 + 0 | $2 + 0 | $3 + 0 | $4 + 0) < 256
187 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];}
236 0 0 19 $query_code && ref $query_code eq 'CODE'
251 299 9 2 $qkey =~ /abuse/i and $query{$qkey} =~ /\@/
254 0 3 10 $query{'fullinfo'} and $query{'fullinfo'} =~ /(\S*abuse\S*\@\S+)/m
263 0 4 0 defined $query{'cidr'} and $query{'cidr'} =~ /\,/
288 0 15 0 $query{'permission'} and $query{'permission'} eq "denied"
326 0 5 0 defined $query{'remarks'} and $query{'remarks'} =~ /The country is really world wide/
0 5 0 defined $query{'netname'} and $query{'netname'} =~ /IANA-BLK/
0 5 0 defined $query{'netname'} and $query{'netname'} =~ /AFRINIC-NET-TRANSFERRED/
0 4 1 defined $query{'country'} and $query{'country'} =~ /world wide/
389 127 7 1 $lc_field eq "country" and defined $query{$lc_field}
402 1 3 0 defined $query{'remarks'} and $query{'remarks'} =~ /address range is not administered by APNIC|This network in not allocated/
0 3 1 defined $query{'descr'} and $query{'descr'} =~ /not allocated to|by APNIC|placeholder reference/i
465 0 2 2 $query{'orgid'} and $query{'orgid'} =~ /^\s*RIPE|LACNIC|APNIC|AFRINIC\s*$/
473 0 1 1 defined $query{'cidr'} and $query{'cidr'} =~ /\,/
511 126 3 5 $field eq "country" and $query{'country'}
530 0 0 1 $query{'nserver'} and $query{'nserver'} =~ /\.(\w\w)$/
0 0 0 $query{'descr'} and $query{'descr'} =~ /\s(\w\w)$/
558 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
176 2 0 {%IANA} || (return 0)

or 3 conditions

line l !l&&r !l&&!r condition
68 0 9 0 ref $proto || $proto
81 2 19 0 $port ||= $WHOIS_PORT
82 2 19 0 $timeout ||= $WHOIS_TIMEOUT
127 0 0 0 $ip =~ /^:[^:]/ or $ip =~ /[^:]:$/
151 0 0 0 length $seg == 0 or length $seg > 4
208 14 0 2 $param{'-whois'} || $param{'-mywhois'}
254 0 1 2 $query{'email'} or $query{'e-mail'}
1 0 2 $query{'email'} or $query{'e-mail'} or $query{'orgtechemail'}
259 1 0 0 $query{'email'} || $query{'e-mail'} || $query{'orgtechemail'}
282 19 26 20 $self->source_connect($source_name) || Carp::carp("Connection failed to $source_name." && (next))
312 54 43 117 /^(\%|\#)/ or not /\:/
326 0 0 5 defined $query{'remarks'} and $query{'remarks'} =~ /The country is really world wide/ or defined $query{'netname'} and $query{'netname'} =~ /IANA-BLK/
0 0 5 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 1 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'}
342 0 4 0 $query{'inet6num'} || $query{'inetnum'}
402 0 1 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'}
414 0 3 0 $query{'inet6num'} || $query{'inetnum'}
438 96 56 175 /^\#/ or not /\:/
442 4 0 171 $field eq "OrgName" or $field eq "CustName"
500 0 0 218 /^\%201/ or /^\% Query rate limit exceeded/
0 0 218 /^\%201/ or /^\% Query rate limit exceeded/ or /^\% Not assigned to LACNIC/
0 0 218 /^\%201/ or /^\% Query rate limit exceeded/ or /^\% Not assigned to LACNIC/ or /\% Permission denied/
507 53 31 134 /^\%/ or not /\:/
558 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/
560 0 2 0 $query{'inet6num'} or $query{'inetnum'}
566 0 2 0 $query{'inet6num'} || $query{'inetnum'}