Branch Coverage

blib/lib/Markup/MatchNode.pm
Criterion Covered Total %
branch 18 50 36.0


line true false branch
43 0 2 if ($_ eq 'parent' and $args{$_} ne $empty)
49 0 2 if ($_ eq 'children')
54 2 0 if (exists $$self{$_}) { }
67 0 0 if $$self{'options'}{'ignore_children'}
76 0 1 if $self->_ignore_me
78 1 0 unless $$self{'options'}{'call_filter'}
0 1 if (scalar @{[] unless $$self{'options'}{'call_filter'};})
93 0 1 if ($nodeA eq $empty and $nodeB eq $empty)
97 0 1 if ($nodeA eq $empty or $nodeB eq $empty)
112 0 1 $list ? :
115 1 0 if ($$self{'text'})
117 0 1 if ($$self{'options'}{'text_not_null'}) { }
0 1 elsif ($$self{'text'} =~ /^{!(.+)!}/) { }
1 0 elsif ($$self{'text'} eq $$treenode{'text'}) { }
118 0 0 if ($$treenode{'text'} =~ /(?:\S+)/) { }
126 0 0 if ($$treenode{'text'} =~ /$1/) { }
145 0 11 if ($$self{'tagname'} eq $j)
151 1 0 if (&$similar($self, $treenode)) { }
156 0 0 if ($$self{'options'}{'optional'})
166 1 0 unless ($$self{'options'}{'ignore_attrs'})
169 0 0 if ($$self{'attr'}{$_} =~ /^{!(.+)!}/) { }
0 0 elsif ($$self{'attr'}{$_} eq $$treenode{'attr'}{$_}) { }
170 0 0 if ($$treenode{'attr'}{$_} =~ /$1/) { }
191 1 0 unless $div or $by
192 0 1 !$by ? :