Branch Coverage

blib/lib/Mail/SpamAssassin/Plugin/SpamCop.pm
Criterion Covered Total %
branch 2 36 5.5


line true false branch
66 1 61 if (not $mailsaobject->{'local_tests_only'} and 1 and 1) { }
102 0 0 if ($value =~ /([^<\s]+\@[^>\s]+)/) { }
0 0 elsif ($value =~ /^$/) { }
130 0 0 if ($value =~ /([^<\s]+\@[^>\s]+)/) { }
0 0 elsif ($value =~ /^$/) { }
162 0 0 unless $self->{'spamcop_available'}
164 0 0 if (not $options->{'report'}{'options'}{'dont_report_to_spamcop'})
165 0 0 if ($self->spamcop_report($options)) { }
183 0 0 if $code
184 0 0 $code ? :
0 0 if $message
200 0 0 if ($date and $date < time - 172800)
230 0 0 if (length $original > $self->{'main'}{'conf'}{'spamcop_max_report_size'} * 1024)
266 0 0 unless $exchange
268 0 0 if ($smtp = 'Net::SMTP'->new($exchange, 'Hello', $hello, 'Port', 587, 'Timeout', 10))
273 0 0 if ($smtp->mail($from) and smtp_dbg("FROM $from", $smtp) and $smtp->recipient($head{'To'}) and smtp_dbg("TO $head{'To'}", $smtp) and $smtp->data($message) and smtp_dbg('DATA', $smtp) and $smtp->quit and smtp_dbg('QUIT', $smtp))
279 0 0 if defined $failure
284 0 0 if $code and $text