Branch Coverage

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


line true false branch
71 1 72 unless ref $html and $html->can('content_refs_list')
84 1 72 if @_ % 2
90 9 63 exists $parms{'default'} ? :
93 1 71 exists $parms{'dashes'} ? :
94 4 68 exists $parms{'ellipses'} ? :
95 2 70 exists $parms{'quotes'} ? :
97 0 72 exists $parms{'hellip'} ? :
99 0 72 exists $parms{'space_ellipses'} ? :
120 65 4 if ($fixQuotes)
182 1 64 if (/"/)
195 67 2 if ($$self[3])
205 66 4 if ($fixQuotes)
222 1 73 unless ref $elt and $elt->can('content_refs_list')
225 0 73 if $elt->is_empty
230 69 3 if ($isP and $$self[1] || $$self[3])
238 66 0 if ($$self[1] and $$self[0] and @content)
240 65 1 unless ref ${$content[0];}
242 65 1 unless ref ${$content[-1];}
246 2 72 if (ref $$r) { }
248 0 2 if $tag =~ /^(?: ~comment | script | style )$/x
250 0 2 if ($$self[0] and $tag eq 'br')
258 64 8 if ($$self[2])
263 67 5 if $$self[5]
266 67 5 if ($$self[3])
273 67 5 if ($$self[4])
279 0 67 if ($$self[0] and @{$$self[0];})
281 0 0 if ${$$self[0][-1];} =~ /\w[!?,;]?$/
283 0 0 if $$r =~ /^\w/
288 69 3 if $$self[0]
292 69 4 if ($isP and $$self[0])
295 1 68 if $parentRefs