Branch Coverage

blib/lib/Mail/Transport/SMTP.pm
Criterion Covered Total %
branch 0 46 0.0


line true false branch
35 0 0 unless ($hosts)
38 0 0 unless @$hosts
42 0 0 unless $self->SUPER::init($args)
57 0 0 unless $self->{'MTS_esmtp_options'}
0 0 unless $args{'esmtp_options'}
61 0 0 if ref $from and $from->isa("Mail::Address")
65 0 0 if defined $args{'To'}
68 0 0 unless @to
75 0 0 unless $out =~ /[\r\n]\z/
81 0 0 if (wantarray)
83 0 0 unless $server = $self->contactAnyServer
86 0 0 unless $server->mail($from, %send_options)
90 0 0 if $server->to($_)
98 0 0 unless $server->datafast(\$out)
109 0 0 unless $server = $self->contactAnyServer
112 0 0 unless $server->mail($from, %send_options)
116 0 0 if $server->to($_)
121 0 0 unless $server->datafast(\$out)
132 0 0 unless $self->_DATA
150 0 0 ref $host ? :
154 0 0 unless my $server = $self->tryConnectTo($host, "Port", $port, %$opts, "Timeout", $timeout)
159 0 0 if (defined $username)
160 0 0 unless ($server->auth($username, $password))