Condition Coverage

blib/lib/Email/Mailer.pm
Criterion Covered Total %
condition 26 40 65.0


and 3 conditions

line !l l&&!r l&&r condition
54 5 6 10 $mail->{'html'} and not $mail->{'text'}
69 36 0 27 $key and defined $mail->{$key}
36 27 0 $key and defined $mail->{$key} and $mail->{$key} =~ /[^[:ascii:]]/u
103 0 16 5 $mail->{'text'} and not $mail->{'html'}
16 2 3 $mail->{'text'} and not $mail->{'html'} and @$attachments == 0
0 16 2 $mail->{'text'} and not $mail->{'html'}

or 2 conditions

line l !l condition
50 2 0 $mail->{'data'} || {}
55 5 5 $mail->{'width'} // 72
56 5 5 $width ||= 1000000
96 8 0 $_->{'ctype'} || 'application/octet-stream'
8 0 $_->{'encoding'} // "base64"

or 3 conditions

line l !l&&r !l&&!r condition
72 0 21 0 $mail->{'Message-Id'} //= "Email::MessageID"->new->in_brackets
96 0 1 0 $_->{'name'} || $_->{'filename'} || $_->{'source'}
0 1 0 $_->{'name'} || $_->{'filename'} || $_->{'source'}
98 14 0 7 !$mail->{'attachments'} || ref $mail->{'attachments'} ne 'ARRAY'