Branch Coverage

blib/lib/Data/Stag/XMLWriter.pm
Criterion Covered Total %
branch 23 42 54.7


line true false branch
27 663 0 if @_
33 0 1768 if @_
40 663 1105 if ($$self{'_unclosed'})
59 0 0 if @_
71 0 28 if @_
79 0 663 unless (defined $ev)
83 28 635 unless (@$stack)
87 0 663 if ($ev eq '@') { }
0 663 elsif ($ev eq '.') { }
0 663 elsif ($self->in_attr) { }
0 663 elsif ($ev eq '') { }
113 0 663 unless $popped
114 0 663 if ($ev and $popped ne $ev)
117 0 663 unless ($ev)
120 0 663 if ($self->in_attr) { }
0 663 elsif ($ev eq '.') { }
121 0 0 if ($ev eq '@')
131 221 442 if ($$self{'_nl'})
136 28 635 unless (@$stack)
146 0 442 if ($self->in_attr) { }
165 0 442 unless (defined $w)