| blib/lib/Email/Mailer.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 24 | 44 | 54.5 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 53 | 1 | 2 | 6 | $mail->{'html'} and not $mail->{'text'} |
| 70 | 0 | 0 | 27 | $key and defined $mail->{$key} |
| 0 | 27 | 0 | $key and defined $mail->{$key} and $mail->{$key} =~ /[^[:ascii:]]/u | |
| 104 | 0 | 8 | 1 | $mail->{'text'} and not $mail->{'html'} |
| 8 | 0 | 1 | $mail->{'text'} and not $mail->{'html'} and @$attachments == 0 | |
| 0 | 8 | 0 | $mail->{'text'} and not $mail->{'html'} |
| line | l | !l | condition |
|---|---|---|---|
| 49 | 2 | 0 | $mail->{'data'} || {} |
| 54 | 5 | 1 | $mail->{'width'} // 72 |
| 55 | 1 | 5 | $width ||= 1000000 |
| 62 | 0 | 9 | $mail->{'Content-Transfer-Encoding'} //= 'quoted-printable' |
| 63 | 0 | 9 | $mail->{'Content-Type'} ||= 'text/plain; charset=us-ascii' |
| 97 | 2 | 0 | $_->{'ctype'} || 'application/octet-stream' |
| 2 | 0 | $_->{'encoding'} // 'base64' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 73 | 0 | 9 | 0 | $mail->{'Message-Id'} //= 'Email::MessageID'->new->in_brackets |
| 97 | 0 | 1 | 0 | $_->{'name'} || $_->{'filename'} || $_->{'source'} |
| 0 | 1 | 0 | $_->{'name'} || $_->{'filename'} || $_->{'source'} | |
| 99 | 8 | 0 | 1 | !$mail->{'attachments'} || ref $mail->{'attachments'} ne 'ARRAY' |