Branch Coverage

blib/lib/XML/Filter/Sort/Buffer.pm
Criterion Covered Total %
branch 46 50 92.0


line true false branch
94 14 30 if ($attr and $attr =~ /^(\{.*?\})?(.*)$/)
96 4 10 if ($1)
106 58 76 if ($abs) { }
107 17 41 if $$self{'_depth'} != $required_depth
110 13 63 if $$self{'_depth'} < $required_depth
114 37 50 unless $$self{'_path_name'}[-$i] eq $name_list[-$i]
115 8 42 if (defined $ns_list[-$i])
116 4 4 unless $$self{'_path_ns'}[-$i] eq $ns_list[-$i]
150 39 24 if ($attr_name) { }
152 8 31 if (defined $attr_nsname) { }
153 4 4 if (exists $$node[1]{'Attributes'}{$attr_nsname})
159 9 10 if ($$attr{'LocalName'} eq $attr_name)
165 26 13 unless defined $value
192 4 26 if (ref $node) { }
193 4 0 if ($$node[0] eq 'e')
194 4 0 if (@{$$node[2];})
240 10 18 unless @_
244 22 32 if (ref $node) { }
245 19 3 if ($$node[0] eq 'e') { }
1 2 elsif ($$node[0] eq 'p') { }
2 0 elsif ($$node[0] eq 'c') { }
247 18 1 if (@{$$node[2];})
278 30 13 if ($$self{'_depth'} > 0)
280 30 0 defined $$elem{'NamespaceURI'} ? :
314 37 97 if ($$self{'_match_subs'}[$i]($self)) { }