Branch Coverage

blib/lib/HTML/Embellish.pm
Criterion Covered Total %
branch 51 62 82.2


line true false branch
71 1 74 unless ref $html and $html->can('content_refs_list')
84 1 74 if @_ % 2
90 9 65 exists $parms{'default'} ? :
93 1 73 exists $parms{'dashes'} ? :
94 4 70 exists $parms{'ellipses'} ? :
95 2 72 exists $parms{'quotes'} ? :
98 0 74 exists $parms{'hellip'} ? :
100 0 74 exists $parms{'space_ellipses'} ? :
120 67 4 if ($fixQuotes)
184 1 66 if (/"/)
197 69 2 if ($self->[3])
207 68 4 if ($fixQuotes)
224 1 75 unless ref $elt and $elt->can('content_refs_list')
227 0 75 if $elt->is_empty
232 71 3 if ($isP and $self->[1] || $self->[3])
240 68 0 if ($self->[1] and $self->[0] and @content)
242 67 1 unless ref ${$content[0];}
244 67 1 unless ref ${$content[-1];}
248 2 74 if (ref $$r) { }
250 0 2 if $tag =~ /^(?: ~comment | script | style )$/x
252 0 2 if ($self->[0] and $tag eq 'br')
260 66 8 if ($self->[2])
265 69 5 if $self->[5]
268 69 5 if ($self->[3])
275 69 5 if ($self->[4])
281 0 69 if ($self->[0] and @{$self->[0];})
283 0 0 if ${$self->[0][-1];} =~ /\w[!?,;]?$/
285 0 0 if $$r =~ /^\w/
290 71 3 if $self->[0]
294 71 3 if ($isP and $self->[0])
297 1 70 if $parentRefs