Condition Coverage

blib/lib/Mail/Sendmail.pm
Criterion Covered Total %
condition 15 48 31.2


and 3 conditions

line !l l&&!r l&&r condition
238 5 0 0 not $k and $^W
258 0 0 1 $smtp and $mailcfg{'smtp'}[0] ne $smtp
365 1 0 0 not $connected = connect(S, pack_sockaddr_in($port, $smtpaddr)) and $retried < $mailcfg{'retries'}

or 2 conditions

line l !l condition
118 0 0 hostname() || 'localhost'
266 1 0 $mail{'Port'} || $mailcfg{'port'} || 25
298 0 1 $mail{'Mime-Version'} ||= '1.0'
299 0 1 $mail{'Content-Type'} ||= 'text/plain; charset="iso-8859-1"'
342 1 0 hostname() || 'localhost'
411 2 8 $v || 1
465 0 0 socket_read() || (return fail("AUTH CRAM-MD5 failed: $Mail::Sendmail::server_reply"))
479 0 0 socket_read() || (return fail("AUTH DIGEST-MD5 failed: $Mail::Sendmail::server_reply"))
487 0 0 socket_read() || (return fail("AUTH DIGEST-MD5 failed: $Mail::Sendmail::server_reply"))

or 3 conditions

line l !l&&r !l&&!r condition
115 0 0 0 $realm ||= $ckey{'realm'}
140 0 2 0 $_[0] || time
218 0 0 16 /^[45]/ or not $_
257 1 0 0 $mail{'Smtp'} || $mail{'Server'}
284 1 0 0 $mail{'Sender'} || $mail{'From'} || $mailcfg{'from'}
292 0 1 0 $mail{'Date'} ||= time_to_date()
301 0 0 1 $mail{'Content-Transfer-Encoding'} or $mail{'Content-Type'} =~ /multipart/io