Branch Coverage

blib/lib/Mail/Builder.pm
Criterion Covered Total %
branch 70 84 83.3


line true false branch
147 8 26 if (scalar @params) { }
148 1 7 if (scalar @params == 1 and &blessed($params[0]) and $params[0]->isa('Mail::Builder::Address')) { }
171 1 0 if ($self->autotext and $self->_plaintext_autotext == 1 || !$self->has_plaintext)
202 26 18 if (ref $html_content and $html_content->isa('HTML::Element')) { }
205 1 25 if ($html_tagname eq 'i' or $html_tagname eq 'em') { }
1 24 elsif ($html_tagname =~ /^h\d$/) { }
1 23 elsif ($html_tagname eq 'strong' or $html_tagname eq 'b') { }
0 23 elsif ($html_tagname eq 'hr') { }
0 23 elsif ($html_tagname eq 'br') { }
2 21 elsif ($html_tagname eq 'ul' or $html_tagname eq 'ol') { }
2 19 elsif ($html_tagname eq 'div' or $html_tagname eq 'p') { }
1 18 elsif ($html_tagname eq 'table') { }
3 15 elsif ($html_tagname eq 'tr' and defined $params->{'table'}) { }
8 7 elsif ($html_tagname eq 'td' || $html_tagname eq 'th' and $params->{'tablerow'}) { }
1 6 elsif ($html_tagname eq 'img' and $html_content->attr('alt')) { }
1 5 elsif ($html_tagname eq 'a' and $html_content->attr('href')) { }
4 1 elsif ($html_tagname eq 'li') { }
0 1 elsif ($html_tagname eq 'pre') { }
0 1 elsif ($html_tagname eq 'head' or $html_tagname eq 'script' or $html_tagname eq 'frameset' or $html_tagname eq 'style') { }
217 1 1 $html_tagname eq 'ol' ? :
219 0 2 if (defined $count_old) { }
235 0 1 if (defined $table_old) { }
246 0 3 if (defined $tablerow_old) { }
253 1 7 if ($html_content->attr('colspan'))
266 2 2 if ($params->{'count'} eq '*') { }
2 0 elsif ($params->{'count'} =~ /^\d+$/) { }
287 18 0 unless ($params->{'pre'})
316 0 0 if ($self->_plaintext_autotext)
333 0 2 if ($self->has_htmltext and not $self->has_plaintext and $self->autotext)
349 2 2 if ($self->has_htmltext and $self->has_plaintext) { }
389 0 2 if ($self->image->length) { }
430 1 7 unless $self->to->length
432 1 6 unless $self->has_from
434 1 5 unless $self->has_subject
436 1 4 unless $self->has_plaintext or $self->has_htmltext
457 3 1 if ($self->has_reply)
462 3 1 if ($self->has_sender)
467 3 1 if ($self->has_language)
472 2 2 if ($self->has_returnpath) { }
1 1 elsif ($self->has_reply) { }
481 3 1 if ($self->has_organization)
489 1 3 if ($self->attachment->length) { }