Branch Coverage

blib/lib/Email/Send/SMTP/Gmail.pm
Criterion Covered Total %
branch 0 134 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'}
240 0 0 if defined $properties{'-subject'}
243 0 0 if defined $properties{'-body'}
246 0 0 if defined $properties{'-attachments'}
248 0 0 if defined $properties{'-attachmentlist'}
250 0 0 if ($mail->{'attachments'} ne '')
253 0 0 if $verbose
255 0 0 if (defined $mail->{'attachmentlist'})
257 0 0 if $verbose
282 0 0 if $mail->{'cc'} ne ''
287 0 0 if ($mail->{'attachments'} ne '') { }
0 0 elsif (defined $mail->{'attachmentlist'}) { }
289 0 0 if $verbose
291 0 0 if (defined $properties{'-disposition'} and 'inline' eq lc $properties{'-disposition'}) { }
333 0 0 if $verbose
338 0 0 if (defined $properties{'-disposition'} and 'inline' eq lc $properties{'-disposition'}) { }
366 0 0 if $verbose
369 0 0 if (defined $properties{'-disposition'} and 'inline' eq lc $properties{'-disposition'}) { }
399 0 0 if $verbose
404 0 0 if (defined $properties{'-disposition'} and 'inline' eq lc $properties{'-disposition'}) { }
431 0 0 if $verbose
445 0 0 if ($self->{'sender'}->dataend) { }
446 0 0 if $verbose
454 0 0 if $verbose