Branch Coverage

blib/lib/Mail/SpamAssassin/RegistryBoundaries.pm
Criterion Covered Total %
branch 42 54 77.7


line true false branch
54 91 0 if ($self->{'conf'}{'valid_tlds'} and %{$self->{'conf'}{'valid_tlds'};}) { }
61 91 0 if (eval {
73 0 0 unless $self->{'main'}{'ignore_site_cf_files'}
110 550 0 if (defined $domain and $domain ne "")
123 27 858 if (@domparts == 4) { }
302 556 elsif (@domparts == 3) { }
545 11 elsif (@domparts == 2) { }
124 0 0 if ($domparts[3] eq "us" and $domparts[0] eq 'pvt' && $domparts[1] eq 'k12' || $domparts[0] =~ /^c[io]$/)
131 0 0 if $US_STATES{$domparts[2]}
139 5 297 if ($domparts[2] eq 'us') { }
140 0 5 if $US_STATES{$domparts[1]}
144 4 293 if $self->{'conf'}{'three_level_domains'}{$temp}
150 21 524 if $self->{'conf'}{'two_level_domains'}{$temp}
160 549 1 if @hostname
205 0 607 unless defined $dom
208 0 607 if $dom =~ /\s/
211 2 605 unless $dom =~ /\.([^.]+)$/
212 33 572 unless $self->{'conf'}{'valid_tlds'}{lc $1}
225 6 743 if $uri =~ /^(?:javascript|cid|file):/
227 42 701 if ($uri =~ s/^mailto://) { }
232 3 39 if $uri =~ /\@.*?\@/
233 5 34 unless $uri =~ s/.*@//
246 1 734 if $uri =~ /\%(?:2[1-9a-f]|[3-6][0-9a-f]|7[0-9a-e])/
252 679 55 unless ($host =~ /^$IP_ADDRESS$/)
254 106 573 unless is_fqdn_valid($host)
256 32 541 unless $self->is_domain_valid($host)
262 22 574 !wantarray ? :