Branch Coverage

blib/lib/Email/Mailer.pm
Criterion Covered Total %
branch 24 28 85.7


line true false branch
22 18 20 if (ref $self) { }
33 81 25 if /^(?:to|from|subject|html|text)$/iu
48 1 20 if (ref $mail->{'process'} eq "CODE")
54 10 11 if ($mail->{'html'} and not $mail->{'text'})
63 6 15 if &is_utf8($mail->{'text'})
69 0 27 if $key and defined $mail->{$key} and $mail->{$key} =~ /[^[:ascii:]]/u
77 0 48 if ref $mail->{$_} eq "ARRAY"
78 0 48 if ref $mail->{$_} eq "HASH"
96 7 1 $_->{'content'} ? :
98 14 7 !$mail->{'attachments'} || ref $mail->{'attachments'} ne 'ARRAY' ? :
103 3 18 if ($mail->{'text'} and not $mail->{'html'} and @$attachments == 0) { }
2 16 elsif ($mail->{'text'} and not $mail->{'html'}) { }
153 1 19 ref $_[0] eq 'HASH' ? :
156 0 20 wantarray ? :