Branch Coverage

blib/lib/Email/Send/SMTP.pm
Criterion Covered Total %
branch 3 40 7.5


line true false branch
18 0 1 if $args{'ssl'}
19 0 1 if $args{'tls'}
20 1 0 $success ? :
28 0 0 unless my $hdr = $message->header('From')
36 0 0 if defined $_
48 0 0 if (@args % 2) { }
58 0 0 $args{'tls'} ? :
0 0 $args{'ssl'} ? :
62 0 0 unless eval "require $smtp_class; 1"
64 0 0 if ($smtp_class eq 'Net::SMTP::TLS')
71 0 0 unless $SMTP
76 0 0 if ($user and not $smtp_class eq 'Net::SMTP::TLS')
77 0 0 unless $SMTP->auth($user, $pass)
86 0 0 unless eval { do { $SMTP->mail($from); 1 } }
90 0 0 if (eval { do { $SMTP->isa('Net::SMTP::TLS') } }) { }
95 0 0 if (@to != @ok)
102 0 0 if @bad == @to
105 0 0 if $@
107 0 0 if ($smtp_class eq 'Net::SMTP::TLS') { }
113 0 0 unless $SMTP->data($message->as_string)