Branch Coverage

lib/Mojolicious/Plugin/Mail.pm
Criterion Covered Total %
branch 32 40 80.0


line true false branch
25 1 0 if $conf
30 12 1 @_ ? :
33 8 4 unless (exists $$args{'mail'})
55 0 0 unless $$conf{'howargs'}
0 12 unless $test
80 12 0 $encoding eq 'base64' ? :
81 0 11 !$encoding ? :
1 11 defined $$p{'mimeword'} ? :
88 10 2 if ($$mail{'Data'} and not $$mail{'Type'} =~ /multipart/)
93 11 1 if ($mimeword)
103 22 3 unless /(.*) \s+ (\S+ @ .*)/x
108 1 2 $name =~ /^[\w\s"'.,]+$/ ? :
127 11 1 unless $$p{'headers'}
128 10 2 unless $msg->get('X-Mailer') or $$p{'nomailer'}
132 12 0 unless $$p{'attr'}
133 12 0 if $charset
138 2 3 if (not $$_{'Type'} or $$_{'Type'} =~ /text/i)
2 3 unless $$_{'Data'}
144 10 2 unless $$p{'attach'}
153 47 1 if $_[0] and $charset and $charset =~ /utf-8/i