Branch Coverage

blib/lib/Net/SMTPS.pm
Criterion Covered Total %
branch 0 46 0.0


line true false branch
32 0 0 if (@_ % 2) { }
42 0 0 defined $host ? :
49 0 0 ref $hosts ? :
50 0 0 defined $arg{'Timeout'} ? :
0 0 if $obj = $type->SUPER::new('PeerAddr', $host = $h, 'PeerPort', $arg{'Port'} || 'smtp(25)', 'LocalAddr', $arg{'LocalAddr'}, 'LocalPort', $arg{'LocalPort'}, 'Proto', 'tcp', 'Timeout', defined $arg{'Timeout'} ? $arg{'Timeout'} : 120)
64 0 0 unless defined $obj
68 0 0 exists $arg{'Debug'} ? :
72 0 0 if ($ssl)
75 0 0 unless (eval { do { require IO::Socket::SSL } })
81 0 0 exists $arg{'Debug'} ? :
85 0 0 if (defined $ssl and $ssl =~ /ssl/i)
87 0 0 unless ($obj->ssl_start(\%ssl_args))
94 0 0 unless ($obj->response == CMD_OK())
105 0 0 unless ($obj->hello($arg{'Hello'} || ''))
111 0 0 if (defined $ssl and $ssl =~ /starttls/i and $obj->supports('STARTTLS'))
115 0 0 unless ($obj->command('STARTTLS')->response == CMD_OK() and $obj->ssl_start(\%ssl_args) and $obj->hello($arg{'Hello'} || ''))
129 0 0 unless unshift @Net::SMTPS::ISA, 'IO::Socket::SSL' and 'IO::Socket::SSL'->start_SSL($self, %$args) and $self->isa('IO::Socket::SSL') and bless $self, $type
140 0 0 unless eval { do { require MIME::Base64; require Authen::SASL } }
146 0 0 if ($mech)
149 0 0 unless $mechanisms
153 0 0 if (ref $username and UNIVERSAL::isa($username, 'Authen::SASL')) { }
158 0 0 unless length $username
181 0 0 if defined $str and length $str