Branch Coverage

blib/lib/Yahoo/Search/XML.pm
Criterion Covered Total %
branch 0 52 0.0


line true false branch
72 0 0 if (%attr)
115 0 0 if ($$node{'Data'}) { }
0 0 elsif ($$node{'Char'} ne '') { }
117 0 0 if ($$node{'Char'} =~ /^\s*$/) { }
136 0 0 if (not $stack[-1]{'Data'}{$$node{'Tag'}}) { }
0 0 elsif (ref $stack[-1]{'Data'}{$$node{'Tag'}} eq 'ARRAY') { }
157 0 0 if (my $val = $EntityDecode{$name}) { }
0 0 elsif ($name =~ /^#(\d+)$/) { }
0 0 elsif ($name =~ /^#x([0-9a-f]+)$/i) { }
182 0 0 if ($xml =~ /\A <\?xml(.*?)> /cgsx)
186 0 0 $xml_header =~ /encoding="(.*?)"/ ? :
206 0 0 if ($xml =~ m[\G <(/?) # $1 - true if an ending tag ( (?> [-:\w]+ ) ) # $2 - tag name ([^>]*) # $3 - attributes (and possible final '/') >]cgx) { }
0 0 elsif ($xml =~ /\G/cgsx) { }
0 0 elsif ($xml =~ /\G]+>/cgsx) { }
0 0 elsif ($xml =~ /\G /cgsx) { }
0 0 elsif ($xml =~ /\G ([^<>]+)/cgx) { }
214 0 0 if $Attribs and $Attribs =~ s[/$][]
216 0 0 if ($TagName eq 'wbr') { }
0 0 elsif ($IsEnd) { }
224 0 0 if ($Attribs)
227 0 0 defined $3 ? :
231 0 0 if ($IsImmediateEnd)
258 0 0 if length $str == 40
264 0 0 if @stack != 1
265 0 0 unless $stack[0]{'Data'}
266 0 0 if keys %{$stack[0]{'Data'};} != 1