Branch Coverage

blib/lib/Email/Send/SMTP/Gmail.pm
Criterion Covered Total %
branch 0 138 0.0


line true false branch
29 0 0 if defined $properties{'-smtp'}
30 0 0 if defined $properties{'-port'}
31 0 0 if defined $properties{'-layer'}
32 0 0 if defined $properties{'-auth'}
33 0 0 if defined $properties{'-ssl_verify_mode'}
34 0 0 if defined $properties{'-ssl_version'}
35 0 0 if defined $properties{'-timeout'}
37 0 0 if (defined $properties{'-from'}) { }
46 0 0 if defined $self->{'error'}
67 0 0 if ($port eq 'default')
68 0 0 if ($layer eq 'ssl') { }
76 0 0 if $debug
78 0 0 if ($layer eq 'none') { }
80 0 0 unless ($self->{'sender'} = 'Net::SMTP'->new($smtp, 'Port', $port, 'Debug', $debug, 'Timeout', $timeout))
84 0 0 if $debug
90 0 0 $layer eq 'ssl' ? :
91 0 0 unless ($self->{'sender'} = 'Net::SMTP'->new($smtp, 'Port', $port, 'Debug', $debug, 'SSL', $ssl, 'SSL_verify_mode', $ssl_mode, 'SSL_version', $ssl_version, 'SSL_ca_file', $ssl_ca, 'SSL_ca_path', $ssl_path, 'Timeout', $timeout))
93 0 0 if $debug
97 0 0 if ($auth ne 'none')
98 0 0 if $layer eq 'tls'
100 0 0 if ($auth eq 'AUTO') { }
101 0 0 unless ($self->{'sender'}->auth($login, $pass))
105 0 0 if $debug
109 0 0 unless ($self->{'sender'}->auth('Authen::SASL'->new('mechanism', $auth, 'callback', {'user', $login, 'pass', $pass})))
113 0 0 if $debug
147 0 0 if (-f $attach) { }
148 0 0 if $verbose
152 0 0 if (not $opened) { }
153 0 0 if $verbose
158 0 0 if $verbose
180 0 0 if (-f $attach->{'file'}) { }
181 0 0 if $verbose
185 0 0 if (not $opened) { }
186 0 0 if $verbose
192 0 0 if $verbose
211 0 0 if defined $properties{'-verbose'}
215 0 0 if defined $properties{'-to'}
217 0 0 if not defined $mail->{'to'} or $mail->{'to'} eq ''
220 0 0 if defined $properties{'-from'}
223 0 0 if defined $properties{'-replyto'}
226 0 0 if defined $properties{'-cc'}
229 0 0 if defined $properties{'-bcc'}
232 0 0 if defined $properties{'-charset'}
235 0 0 if defined $properties{'-contenttype'}
238 0 0 if defined $properties{'-sns_topic'}
243 0 0 if defined $properties{'-subject'}
246 0 0 if defined $properties{'-body'}
249 0 0 if defined $properties{'-attachments'}
251 0 0 if defined $properties{'-attachmentlist'}
253 0 0 if ($mail->{'attachments'} ne '')
256 0 0 if $verbose
258 0 0 if (defined $mail->{'attachmentlist'})
260 0 0 if $verbose
285 0 0 if $mail->{'cc'} ne ''
289 0 0 if defined $mail->{'sns_topic'}
291 0 0 if ($mail->{'attachments'} ne '') { }
0 0 elsif (defined $mail->{'attachmentlist'}) { }
293 0 0 if $verbose
295 0 0 if (defined $properties{'-disposition'} and 'inline' eq lc $properties{'-disposition'}) { }
337 0 0 if $verbose
342 0 0 if (defined $properties{'-disposition'} and 'inline' eq lc $properties{'-disposition'}) { }
370 0 0 if $verbose
373 0 0 if (defined $properties{'-disposition'} and 'inline' eq lc $properties{'-disposition'}) { }
403 0 0 if $verbose
408 0 0 if (defined $properties{'-disposition'} and 'inline' eq lc $properties{'-disposition'}) { }
435 0 0 if $verbose
449 0 0 if ($self->{'sender'}->dataend) { }
450 0 0 if $verbose
458 0 0 if $verbose