| blib/lib/Net/Async/SMTP/Client.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 0 | 5 | 0.0 |
| line | l | !l | condition |
|---|---|---|---|
| 108 | 0 | 0 | $self->port || 'smtp' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 202 | 0 | 0 | 0 | $self->{'connected'} ||= $self->connection->then(sub { my $sock = shift(); my $stream = "Net::Async::SMTP::Connection"->new("handle", $sock, $self->auth ? ("auth", $self->auth) : ()); $self->add_child($stream); $stream->send_greeting->then(sub { return "Future"->wrap($stream) unless $stream->has_feature("STARTTLS"); require IO::Async::SSLStream; $stream->starttls($self->ssl_parameters); } ); } ) |