Branch Coverage

blib/lib/Email/Mailer.pm
Criterion Covered Total %
branch 26 32 81.2


line true false branch
21 6 8 if (ref $self) { }
32 49 13 if /^(?:to|from|subject|html|text)$/iu
47 1 8 if (ref $mail->{'process'} eq 'CODE')
53 6 3 if ($mail->{'html'} and not $mail->{'text'})
65 9 0 $mail->{'Content-Type'} =~ /\bcharset\s*=\s*([^;]+)/iu ? :
70 0 27 if $key and defined $mail->{$key} and $mail->{$key} =~ /[^[:ascii:]]/u
78 0 54 if ref $mail->{$_} eq 'ARRAY'
79 0 54 if ref $mail->{$_} eq 'HASH'
97 1 1 $_->{'content'} ? :
99 8 1 !$mail->{'attachments'} || ref $mail->{'attachments'} ne 'ARRAY' ? :
104 1 8 if ($mail->{'text'} and not $mail->{'html'} and @$attachments == 0) { }
0 8 elsif ($mail->{'text'} and not $mail->{'html'}) { }
133 9 17 if $part->subparts
135 8 9 if ($part->content_type eq 'text/plain')
152 1 7 ref $_[0] eq 'HASH' ? :
155 0 8 wantarray ? :