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
239 5 0 0 not $k and $^W
259 0 0 1 $smtp and $mailcfg{'smtp'}[0] ne $smtp
366 1 0 0 not $connected = connect(S, pack_sockaddr_in($port, $smtpaddr)) and $retried < $mailcfg{'retries'}

or 2 conditions

line l !l condition
119 0 0 hostname() || 'localhost'
267 1 0 $mail{'Port'} || $mailcfg{'port'} || 25
299 0 1 $mail{'Mime-Version'} ||= "1.0"
300 0 1 $mail{'Content-Type'} ||= "text/plain; charset=\"iso-8859-1\""
343 1 0 hostname_long() || hostname() || 'localhost'
412 2 10 $v || 1
466 0 0 socket_read() || (return fail("AUTH CRAM-MD5 failed: $Mail::Sendmail::server_reply"))
480 0 0 socket_read() || (return fail("AUTH DIGEST-MD5 failed: $Mail::Sendmail::server_reply"))
488 0 0 socket_read() || (return fail("AUTH DIGEST-MD5 failed: $Mail::Sendmail::server_reply"))

or 3 conditions

line l !l&&r !l&&!r condition
116 0 0 0 $realm ||= $ckey{'realm'}
141 0 2 0 $_[0] || time
219 0 0 18 /^[45]/ or not $_
258 1 0 0 $mail{'Smtp'} || $mail{'Server'}
285 1 0 0 $mail{'Sender'} || $mail{'From'} || $mailcfg{'from'}
293 0 1 0 $mail{'Date'} ||= time_to_date()
302 0 0 1 $mail{'Content-Transfer-Encoding'} or $mail{'Content-Type'} =~ /multipart/io