Condition Coverage

blib/lib/Net/Whois/IP.pm
Criterion Covered Total %
condition 2 71 2.8


and 3 conditions

line !l l&&!r l&&r condition
249 0 0 0 $raw_flag and $raw_flag ne ""
262 0 0 0 defined $item and $item =~ /\S/
316 0 0 0 defined $rec->{'start'} and defined $rec->{'end'}
367 0 0 0 $multiple_flag and $multiple_flag ne ""
390 0 0 0 ref $search_options eq "ARRAY" and defined $search_options->[0]
0 0 0 ref $search_options eq "ARRAY" and defined $search_options->[0] and $search_options->[0] ne ""
398 0 0 0 /OrgID:\s+(\S+)/i || /source:\s+(\S+)/i and not defined $hash_response->{$pattern1}
0 0 0 $registrar eq "ARIN" and /.+\((.+)\).+$/
0 0 0 $registrar eq "ARIN" and /.+\((.+)\).+$/ and not $_ =~ /.+\:.+/
412 0 0 0 $1 ne "" and not defined $hash_response->{$pattern1}
0 0 0 $1 ne "" and not defined $hash_response->{$pattern1} and not defined $hash_response->{$pattern2}
515 0 0 0 $start == 0 and $end == 4294967295
577 0 0 0 not defined $last and $registrar eq $whois_servers{'ARIN'}

or 2 conditions

line l !l condition
313 0 0 $out{'Source'} ||= ["ARIN"]
341 0 0 $query_prefix{$registrar} // ""
342 0 0 $query_prefix{$registrar} // ""
361 0 0 $multiple_flag // ""
596 0 0 'File::Spec'->tmpdir || '/tmp'
621 0 0 $label //= "WHOIS response"
677 0 0 $label //= "WHOIS response array"

or 3 conditions

line l !l&&r !l&&!r condition
175 3 0 1 $ip =~ /\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/ or $ip =~ /^$Net::Whois::IP::IPv6_re$/
235 0 0 0 $new_ip ne $ip or $new_registrar ne $registrar
398 0 0 0 /OrgID:\s+(\S+)/i || /source:\s+(\S+)/i
495 0 0 0 $octet < 0 or $octet > 255
545 0 0 0 not defined $n or $n <= 0
555 0 0 0 $n < 0 or $n > 4294967295