Condition Coverage

blib/lib/XAO/DO/Web/Mailer.pm
Criterion Covered Total %
condition 66 96 68.7


and 3 conditions

line !l l&&!r l&&r condition
148 0 0 3 $n and $v
222 17 0 0 ref $config->{'from'} and $config->{'from'}{$from}
387 1 16 3 $charset && utf8::is_utf8($subject)
400 5 8 7 defined $html and not defined $text
13 1 6 defined $html and not defined $text and not @attachments
1 8 5 defined $text and not defined $html
9 1 4 defined $text and not defined $html and not @attachments
401 0 6 0 $charset && utf8::is_utf8($html)
414 1 3 0 $charset && utf8::is_utf8($text)
429 0 9 0 $charset && utf8::is_utf8($text)
443 0 9 0 $charset && utf8::is_utf8($html)
461 1 1 8 $text_part and $html_part
2 5 3 $text_part and $html_part and @attachments

or 2 conditions

line l !l condition
127 20 0 $self->siteconfig->get('/mailer') || {}
133 1 19 $args->{'cc'} || ''
134 1 19 $args->{'bcc'} || ''
247 20 0 $args->{'subject'} || $self->get_subject || 'No subject'
259 19 1 $config->{'charset'} || $self->siteconfig->get('charset') || undef
282 10 10 $config->{'transfer_encoding'} || 'binary'
325 8 1 $$args{'attachment.' . $id . '.filename'} || ''
0 9 $$args{'attachment.' . $id . '.disposition'} || 'attachment'
348 0 0 $objargs->{'objname'} || 'Page'
362 1 0 $charset || 'utf8'
495 20 0 $config->{'method'} || 'local'
506 0 0 $agent || 'localhost'

or 3 conditions

line l !l&&r !l&&!r condition
129 20 0 0 $args->{'to'} || $self->get_to($args) || $self->throw(q[display - no 'to' given])
293 0 0 20 $args->{'text.path'} or $args->{'path'}
0 9 11 $args->{'text.path'} or $args->{'path'} or $args->{'text.template'}
9 4 7 $args->{'text.path'} or $args->{'path'} or $args->{'text.template'} or $args->{'template'}
297 0 0 13 $args->{'text.path'} || $args->{'path'}
9 4 0 $args->{'text.template'} || $args->{'template'}
1 1 11 $args->{'text.unparsed'} || $args->{'unparsed'}
304 1 14 5 $args->{'html.path'} or $args->{'html.template'}
308 1 1 13 $args->{'html.unparsed'} || $args->{'unparsed'}
312 13 7 0 defined $text or defined $html
328 7 2 0 $$args{'attachment.' . $id . '.template'} or $$args{'attachment.' . $id . '.path'}