blib/lib/Mail/Builder.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 44 | 72 | 61.1 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
148 | 1 | 5 | 2 | scalar @params == 1 and &blessed($params[0]) |
6 | 1 | 1 | scalar @params == 1 and &blessed($params[0]) and $params[0]->isa('Mail::Builder::Address') | |
171 | 0 | 1 | 0 | $self->autotext and $self->_plaintext_autotext == 1 || !$self->has_plaintext |
202 | 18 | 0 | 26 | ref $html_content and $html_content->isa('HTML::Element') |
205 | 15 | 0 | 3 | $html_tagname eq 'tr' and defined $params->{'table'} |
7 | 8 | 0 | $html_tagname eq 'td' || $html_tagname eq 'th' and $params->{'tablerow'} | |
6 | 0 | 1 | $html_tagname eq 'img' and $html_content->attr('alt') | |
5 | 0 | 1 | $html_tagname eq 'a' and $html_content->attr('href') | |
333 | 2 | 2 | 0 | $self->has_htmltext and not $self->has_plaintext |
4 | 0 | 0 | $self->has_htmltext and not $self->has_plaintext and $self->autotext | |
349 | 2 | 0 | 2 | $self->has_htmltext and $self->has_plaintext |
line | l | !l | condition |
---|---|---|---|
197 | 21 | 5 | $params ||= {} |
254 | 1 | 0 | $html_content->attr('colspan') || 1 |
265 | 4 | 0 | $params->{'count'} ||= '*' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
169 | 1 | 0 | 0 | $htmltext ||= $self->htmltext |
171 | 0 | 1 | 0 | $self->_plaintext_autotext == 1 || !$self->has_plaintext |
205 | 0 | 1 | 25 | $html_tagname eq 'i' or $html_tagname eq 'em' |
1 | 0 | 23 | $html_tagname eq 'strong' or $html_tagname eq 'b' | |
1 | 1 | 21 | $html_tagname eq 'ul' or $html_tagname eq 'ol' | |
0 | 2 | 19 | $html_tagname eq 'div' or $html_tagname eq 'p' | |
8 | 0 | 7 | $html_tagname eq 'td' || $html_tagname eq 'th' | |
0 | 0 | 1 | $html_tagname eq 'head' or $html_tagname eq 'script' | |
0 | 0 | 1 | $html_tagname eq 'head' or $html_tagname eq 'script' or $html_tagname eq 'frameset' | |
0 | 0 | 1 | $html_tagname eq 'head' or $html_tagname eq 'script' or $html_tagname eq 'frameset' or $html_tagname eq 'style' | |
436 | 4 | 0 | 1 | $self->has_plaintext or $self->has_htmltext |