Branch Coverage

lib/Email/MIME/CreateHTML.pm
Criterion Covered Total %
branch 41 46 89.1


line true false branch
41 1 8 defined $args->{'embed'} && $args->{'embed'} eq '0' ? :
42 1 8 defined $args->{'inline_css'} && $args->{'inline_css'} eq '0' ? :
46 0 8 unless $embed or $inline_css
54 147 25 unless ($token->is_start_tag($regex))
62 2 23 if ($token_tag eq 'link' and $token_attrs->{'type'} eq 'text/css')
63 1 1 unless ($inline_css)
77 11 42 if (defined $token_attrs->{$attr})
79 6 5 if $link =~ /^cid:/i
82 4 1 if ($embed and $embed_tags->{$token_tag}{$attr})
83 3 1 unless (defined $embedded_cids{$link})
106 0 9 unless $cid =~ /^[\w\-\@\.]+$/
107 0 9 unless length $cid
133 6 2 unless exists $body_attributes->{'charset'}
134 7 1 unless exists $body_attributes->{'encoding'}
137 2 6 if (not scalar @$html_mime_parts || defined $plain_text_mime) { }
1 5 elsif (not scalar @$html_mime_parts and defined $plain_text_mime) { }
4 1 elsif (scalar @$html_mime_parts and not defined $plain_text_mime) { }
1 0 elsif (scalar @$html_mime_parts and defined $plain_text_mime) { }
213 2 7 if (exists $args{'text_body'})
214 2 0 unless $args{'text_body_attributes'}
227 5 3 if $objects
228 3 5 if %$embedded_cids
232 6 2 unless $args{'body_attributes'}