Branch Coverage

blib/lib/XML/Filter/Reindent.pm
Criterion Covered Total %
branch 18 34 52.9


line true false branch
17 2 0 unless defined $$self{'Tab'}
21 2 0 unless defined $$self{'Newline'}
38 0 2 $$event{'PreserveWS'} ? :
49 1 1 $$parent{'IndentChildren'} ? :
51 1 1 $self->indent_element($event, $parent_says_indent) ? :
62 2 0 if ($$start_element{'IndentChildren'} == MAYBE())
67 1 1 if ($prev == $start_element) { }
0 1 elsif ($$prev{'EventType'} eq 'characters') { }
76 0 0 if ($$q[-2] == $start_element)
87 2 0 $$start_element{'IndentChildren'} ? :
90 1 1 if ($compress)
112 0 10 if ($type =~ /^(characters|comment|processing_instruction|entity_reference|cdata)$/)
114 0 0 $$self{'ParentStack'}[-1]{'IndentChildren'} ? :
115 0 0 $indent_kids ? :
136 0 10 if ($$head{'EventType'} =~ /ws|ignorable/) { }
141 0 0 if (defined $indent) { }
157 2 8 if (defined $indent) { }