Branch Coverage

blib/lib/Markup/TreeNode.pm
Criterion Covered Total %
branch 2 46 4.3


line true false branch
42 0 2 if ($_ eq 'parent' and $args{$_} ne $empty)
48 0 0 if ($_ eq 'children' and scalar @{$args{$_};})
53 2 0 if (exists $$self{$_}) { }
67 0 0 unless $$self{'parent'}{'children'}
111 0 0 unless (UNIVERSAL::isa($_, 'Markup::TreeNode'))
125 0 0 if ($$self{'element_type'} eq '-->text')
129 0 0 $$next_node{'element_type'} eq '-->text' ? :
135 0 0 if (scalar @{$$self{'children'};})
141 0 0 if ($$myself{'parent'} ne $empty)
142 0 0 unless $$myself{'parent'}{'children'}
0 0 if ($$myself{'child_num'} < scalar(@{[] unless $$myself{'parent'}{'children'};}) - 1)
158 0 0 if ($$self{'parent'} ne $empty)
159 0 0 if ($$self{'child_num'} > 0 and scalar @{$$self{'parent'}{'children'};} >= 1)
161 0 0 unless $$ret{'children'}
177 0 0 if $parent eq $empty
181 0 0 unless $$parent{'children'}
0 0 if ($$self{'child_num'} < scalar @{[] unless $$parent{'children'};} and $$self{'child_num'} > 0)
195 0 0 unless (UNIVERSAL::isa($node, 'Markup::TreeNode'))
205 0 0 unless $position
208 0 0 if ($position ne 'after' and $position ne 'before')
212 0 0 unless (UNIVERSAL::isa($node, 'Markup::TreeNode'))
217 0 0 if $child_num < 0
219 0 0 if ($$self{'parent'} eq $empty)