Branch Coverage

blib/lib/Mail/SpamAssassin/Plugin/ASN.pm
Criterion Covered Total %
branch 3 90 3.3


line true false branch
213 0 0 unless (defined $value and not $value =~ /^$/)
217 0 0 unless ($value =~ /^(\S+?)\.?(?:\s+_(\S+)_\s+_(\S+)_)?$/)
221 0 0 unless defined $asn_tag
222 0 0 unless defined $route_tag
233 0 0 unless (defined $value and not $value =~ /^$/)
237 0 0 unless ($value =~ /^(\S+?)\.?(?:\s+_(\S+)_\s+_(\S+)_)?$/)
241 0 0 unless defined $asn_tag
242 0 0 unless defined $route_tag
254 0 0 if (defined $value and $value ne "")
268 0 0 unless defined $value
270 0 0 if $value =~ /^(['"])(.*)\1\z/
286 77 4 unless ($pms->is_dns_available)
291 4 0 unless ($conf->{'asnlookups'} or $conf->{'asnlookups_ipv6'})
299 0 0 if ($conf->{'asnlookups'})
305 0 0 if ($conf->{'asnlookups_ipv6'})
315 0 0 if (not defined $relay) { }
0 0 elsif ($relay->{'ip_private'}) { }
325 0 0 if (defined $reversed_ip) { }
333 0 0 if ($ip =~ /^$IPV4_ADDRESS$/o) { }
334 0 0 unless (defined $conf->{'asnlookups'})
340 0 0 unless (defined $conf->{'asnlookups_ipv6'})
361 0 0 if $ent
389 0 0 if (defined $tag_value)
391 0 0 if (defined $prefix and $prefix ne "")
401 0 0 if (defined $tag_value)
407 0 0 !defined($pkt) ? :
411 0 0 if $rr->type ne "TXT"
412 0 0 $txtdata_can_provide_a_list ? :
414 0 0 unless @strings
415 0 0 if utf8::is_utf8($_)
418 0 0 if (@strings > 1 and not join('', @strings) =~ /\|/) { }
421 0 0 if (@items >= 3 and not $items[1] =~ m[/] and $items[2] =~ /^\d+\z/)
430 0 0 if (@items and $items[0] =~ /(?: (?:^|\s+) (?:AS)? \d+ )+ \z/six) { }
0 0 elsif (@items > 1 and $items[1] =~ /(?: (?:^|\s+) (?:AS)? \d+ )+ \z/six) { }
434 0 0 if @items >= 2
444 0 0 if (not defined $route or $route eq '') { }
0 0 elsif ($route =~ m[/0+\z]) { }
0 0 elsif ($route_tag_data_seen{$route}) { }
460 0 0 if (not $asn or $asn == 4294967295) { }
0 0 elsif ($asn_tag_data_seen{$asn}) { }
473 0 0 if ($any_asn_updates and @asn_tag_data)
476 0 0 if (defined $prefix and $prefix ne "")
477 0 0 @asn_tag_data == 1 ? :
480 0 0 if ($any_route_updates and @route_tag_data)
483 0 0 @route_tag_data == 1 ? :