Branch Coverage

blib/lib/Mail/SpamAssassin/Plugin/RelayCountry.pm
Criterion Covered Total %
branch 6 84 7.1


line true false branch
116 0 0 unless ($value =~ /^(?:GeoIP|GeoIP2|DB_File|Fast)$/)
148 0 0 unless (defined $value and length $value)
151 0 0 unless (-e $value)
179 0 0 if ($value eq "")
196 0 0 if ($ip =~ /^$IP_PRIVATE$/o) { }
0 0 elsif ($country_db_type eq 'GeoIP') { }
0 0 elsif ($country_db_type eq 'GeoIP2') { }
0 0 elsif ($country_db_type eq 'DB_File') { }
0 0 elsif ($country_db_type eq 'Fast') { }
200 0 0 if ($ip =~ /^$IPV4_ADDRESS$/o) { }
0 0 elsif (defined $dbv6) { }
209 0 0 if (index($db->metadata->description->{'en'}, 'City') != -1) { }
217 0 0 unless (eval {
223 0 0 if ($ip =~ /^$IPV4_ADDRESS$/o) { }
250 87 0 if ($country_db_type eq 'GeoIP') { }
0 0 elsif ($country_db_type eq 'GeoIP2') { }
0 0 elsif ($country_db_type eq 'DB_File') { }
254 0 0 unless $db
256 0 0 if ('Geo::IP'->VERSION >= 1.39 and 'Geo::IP'->api eq 'CAPI') { }
258 0 0 unless ($dbv6)
264 0 0 $dbv6 ? :
266 87 0 unless (eval {
273 0 0 unless ($country_db_path)
276 0 0 if (-f $_)
282 0 0 if (-f $country_db_path) { }
289 0 0 unless $db
295 0 0 unless (eval {
303 0 0 $country_db_path ? :
310 0 0 if (-f $country_db_path) { }
314 0 0 unless $db
317 0 0 unless (eval {
329 87 0 if ($country_db_type eq "Fast")
330 87 0 $@ ne '' ? :
336 87 0 unless (eval {
337 87 0 $@ ne '' ? :
343 0 0 unless ($db)
367 0 0 if ($relay->{'auth'})
370 0 0 if ($found_auth)
387 0 0 @cc_untrusted == 1 ? :
392 0 0 @cc_external == 1 ? :
397 0 0 @cc_auth == 1 ? :
402 0 0 @cc_all == 1 ? :