Condition Coverage

lib/Mojolicious/Plugin/Mail.pm
Criterion Covered Total %
condition 34 55 61.8


and 3 conditions

line !l l&&!r l&&r condition
82 2 0 10 $$mail{'Data'} and not $$mail{'Type'} =~ /multipart/
147 0 0 48 $_[0] and $charset
0 1 47 $_[0] and $charset and $charset =~ /utf-8/i

or 2 conditions

line l !l condition
8 0 1 $ENV{'MOJO_MAIL_TEST'} || 0
21 1 0 $$conf{'from'} ||= 'test-mail-plugin@mojolicio.us'
22 0 1 $$conf{'charset'} ||= 'UTF-8'
23 1 0 $$conf{'encoding'} ||= 'base64'
54 12 0 $$args{'test'} || 0
79 9 0 $$conf{'from'} || ''
80 8 0 $$conf{'type'} || ''
146 48 0 $_[1] || 'UTF-8'

or 3 conditions

line l !l&&r !l&&!r condition
50 6 4 2 $$args{'mail'}{'Data'} ||= $self->render_mail(@stash)
51 7 5 0 $$args{'mail'}{'Subject'} ||= $self->stash('subject')
72 1 11 0 $$p{'charset'} || $$conf{'charset'}
73 0 12 0 $$p{'encoding'} || $$conf{'encoding'}
79 3 9 0 $$mail{'From'} ||= $$conf{'from'} || ''
80 4 8 0 $$mail{'Type'} ||= $$conf{'type'} || ''
83 0 10 0 $$mail{'Encoding'} ||= $encoding
122 1 1 10 $msg->get('X-Mailer') or $$p{'nomailer'}
132 1 1 3 not $$_{'Type'} or $$_{'Type'} =~ /text/i
133 1 1 0 $$_{'Encoding'} ||= $encoding