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
248 15 0 0 $raw_flag and $raw_flag ne ""
261 0 0 0 defined $item and $item =~ /\S/
315 0 0 0 defined $rec->{'start'} and defined $rec->{'end'}
364 1341 0 0 $multiple_flag and $multiple_flag ne ""
387 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 ""
395 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 $_ =~ /.+\:.+/
409 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}
512 0 0 0 $start == 0 and $end == 4294967295
574 14 10 3 not defined $last and $registrar eq $whois_servers{'ARIN'}

or 2 conditions

line l !l condition
312 0 0 $out{'Source'} ||= ["ARIN"]
340 19 8 $query_prefix{$registrar} // ""
341 19 8 $query_prefix{$registrar} // ""
360 0 27 $multiple_flag // ""
593 0 0 'File::Spec'->tmpdir || '/tmp'
618 0 0 $label //= "WHOIS response"
674 0 0 $label //= "WHOIS response array"

or 3 conditions

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