Condition Coverage

blib/lib/Net/Whois/IP.pm
Criterion Covered Total %
condition 28 71 39.4


and 3 conditions

line !l l&&!r l&&r condition
259 15 0 0 $raw_flag and $raw_flag ne ""
272 0 0 0 defined $item and $item =~ /\S/
326 0 0 0 defined $rec->{'start'} and defined $rec->{'end'}
377 1383 0 0 $multiple_flag and $multiple_flag ne ""
400 27 0 0 ref $search_options eq "ARRAY" and defined $search_options->[0]
27 0 0 ref $search_options eq "ARRAY" and defined $search_options->[0] and $search_options->[0] ne ""
408 999 0 27 /OrgID:\s+(\S+)/i || /source:\s+(\S+)/i and not defined $hash_response->{$pattern1}
395 587 2 $registrar eq "ARIN" and /.+\((.+)\).+$/
982 2 0 $registrar eq "ARIN" and /.+\((.+)\).+$/ and not $_ =~ /.+\:.+/
422 0 0 15 $1 ne "" and not defined $hash_response->{$pattern1}
0 15 0 $1 ne "" and not defined $hash_response->{$pattern1} and not defined $hash_response->{$pattern2}
525 0 0 0 $start == 0 and $end == 4294967295
587 14 10 3 not defined $last and $registrar eq $whois_servers{'ARIN'}

or 2 conditions

line l !l condition
323 0 0 $out{'Source'} ||= ["ARIN"]
351 19 8 $query_prefix{$registrar} // ""
352 19 8 $query_prefix{$registrar} // ""
371 0 27 $multiple_flag // ""
606 0 0 'File::Spec'->tmpdir || '/tmp'
631 0 0 $label //= "WHOIS response"
687 0 0 $label //= "WHOIS response array"

or 3 conditions

line l !l&&r !l&&!r condition
185 18 0 1 $ip =~ /\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/ or $ip =~ /^$Net::Whois::IP::IPv6_re$/
245 0 12 15 $new_ip ne $ip or $new_registrar ne $registrar
408 15 12 999 /OrgID:\s+(\S+)/i || /source:\s+(\S+)/i
505 0 0 0 $octet < 0 or $octet > 255
555 0 0 0 not defined $n or $n <= 0
565 0 0 0 $n < 0 or $n > 4294967295