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
74 12 0 $encoding eq 'base64' ? :
75 0 11 !$encoding ? :
1 11 defined $$p{'mimeword'} ? :
82 10 2 if ($$mail{'Data'} and not $$mail{'Type'} =~ /multipart/)
87 11 1 if ($mimeword)
97 22 3 unless /(.*) \s+ (\S+ @ .*)/x
102 1 2 $name =~ /^[\w\s"'.,]+$/ ? :
121 11 1 unless $$p{'headers'}
122 10 2 unless $msg->get('X-Mailer') or $$p{'nomailer'}
126 12 0 unless $$p{'attr'}
127 12 0 if $charset
132 2 3 if (not $$_{'Type'} or $$_{'Type'} =~ /text/i)
2 3 unless $$_{'Data'}
138 10 2 unless $$p{'attach'}
147 47 1 if $_[0] and $charset and $charset =~ /utf-8/i