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
88 2 0 10 $$mail{'Data'} and not $$mail{'Type'} =~ /multipart/
153 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
85 9 0 $$conf{'from'} || ''
86 8 0 $$conf{'type'} || ''
152 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')
78 1 11 0 $$p{'charset'} || $$conf{'charset'}
79 0 12 0 $$p{'encoding'} || $$conf{'encoding'}
85 3 9 0 $$mail{'From'} ||= $$conf{'from'} || ''
86 4 8 0 $$mail{'Type'} ||= $$conf{'type'} || ''
89 0 10 0 $$mail{'Encoding'} ||= $encoding
128 1 1 10 $msg->get('X-Mailer') or $$p{'nomailer'}
138 1 1 3 not $$_{'Type'} or $$_{'Type'} =~ /text/i
139 1 1 0 $$_{'Encoding'} ||= $encoding