Condition Coverage

blib/lib/XAO/DO/Web/Mailer.pm
Criterion Covered Total %
condition 59 87 67.8


and 3 conditions

line !l l&&!r l&&r condition
164 10 0 0 ref $config->{'from'} and $config->{'from'}{$from}
327 1 9 3 $charset && utf8::is_utf8($subject)
340 5 4 4 defined $html and not defined $text
9 1 3 defined $html and not defined $text and not @attachments
1 4 5 defined $text and not defined $html
5 1 4 defined $text and not defined $html and not @attachments
341 0 3 0 $charset && utf8::is_utf8($html)
354 1 3 0 $charset && utf8::is_utf8($text)
369 0 5 0 $charset && utf8::is_utf8($text)
383 0 5 0 $charset && utf8::is_utf8($html)
401 1 1 4 $text_part and $html_part
2 1 3 $text_part and $html_part and @attachments

or 2 conditions

line l !l condition
112 13 0 $self->siteconfig->get('/mailer') || {}
118 1 12 $args->{'cc'} || ''
119 1 12 $args->{'bcc'} || ''
189 13 0 $args->{'subject'} || $self->get_subject || 'No subject'
201 12 1 $config->{'charset'} || $self->siteconfig->get('charset') || undef
224 10 3 $config->{'transfer_encoding'} || 'binary'
265 8 1 $$args{'attachment.' . $id . '.filename'} || ''
0 9 $$args{'attachment.' . $id . '.disposition'} || 'attachment'
288 0 0 $objargs->{'objname'} || 'Page'
302 1 0 $charset || 'utf8'
435 13 0 $config->{'method'} || 'local'
446 0 0 $agent || 'localhost'

or 3 conditions

line l !l&&r !l&&!r condition
114 13 0 0 $args->{'to'} || $self->get_to($args) || $self->throw(q[display - no 'to' given])
235 0 0 13 $args->{'text.path'} or $args->{'path'}
0 5 8 $args->{'text.path'} or $args->{'path'} or $args->{'text.template'}
5 4 4 $args->{'text.path'} or $args->{'path'} or $args->{'text.template'} or $args->{'template'}
238 0 0 9 $args->{'text.path'} || $args->{'path'}
5 4 0 $args->{'text.template'} || $args->{'template'}
245 1 7 5 $args->{'html.path'} or $args->{'html.template'}
252 9 4 0 defined $text or defined $html
268 7 2 0 $$args{"attachment." . $id . ".template"} or $$args{"attachment." . $id . ".path"}