Branch Coverage

blib/lib/Mojo/DOM/Role/PrettyPrinter.pm
Criterion Covered Total %
branch 15 24 62.5


line true false branch
19 0 20 unless $e
22 14 6 if ($e eq 'tag') { }
0 6 elsif ($e eq 'text') { }
0 6 elsif ($e eq 'comment') { }
0 6 elsif ($e eq 'pi') { }
6 0 elsif ($e eq 'root') { }
34 0 0 unless $_
78 0 14 unless $qname =~ /^(?:[a-zA-Z_]+:)?[^\s]+$/
87 9 5 if ($child->[0]) { }
93 3 6 if (not $child->[1] and ($child->[0] and $child->[0][0] eq 'text')) { }
104 0 6 if ($child->[0] and $child->[0][0] eq 'text')
147 5 9 if (keys %attr)