Condition Coverage

blib/lib/Mail/Sendmail.pm
Criterion Covered Total %
condition 13 35 37.1


and 3 conditions

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

or 2 conditions

line l !l condition
202 1 0 $mail{'Port'} || $Mail::Sendmail::mailcfg{'port'} || 25
229 0 1 $mail{'Mime-Version'} ||= '1.0'
230 0 1 $mail{'Content-Type'} ||= 'text/plain; charset="iso-8859-1"'
270 1 0 hostname() || 'localhost'

or 3 conditions

line l !l&&r !l&&!r condition
88 0 2 0 $_[0] || time
160 0 0 7 /^[45]/ or not $_
193 1 0 0 $mail{'Smtp'} || $mail{'Server'}
215 1 0 0 $mail{'Sender'} || $mail{'From'} || $Mail::Sendmail::mailcfg{'from'}
223 0 1 0 $mail{'Date'} ||= time_to_date()
232 0 0 1 $mail{'Content-Transfer-Encoding'} or $mail{'Content-Type'} =~ /multipart/io