Branch Coverage

web/cgi-bin/yatt.lib/YATT/LRXML/Node.pm
Criterion Covered Total %
branch 79 98 80.6


line true false branch
89 42 35 ref $$_[1] eq 'CODE' ? :
116 171 222 if (not ref $item) { }
222 0 elsif (defined(my $sub = $$item[2])) { }
129 404 949 ref $type ? :
130 950 403 unless defined $flag
132 0 1353 unless defined $typeid
140 133 5 unless defined $name
177 184 2 if $_[0][0] == 7
183 4 2 if $_[0][0] == 7 and defined $_[0][1]
191 0 138 if (not defined $type or $type eq '')
194 0 138 if (@NODE_FORMAT <= $type)
197 99 39 if (ref(my $desc = $NODE_FORMAT[$type]) eq 'CODE') { }
202 27 12 defined $prefix ? :
0 39 defined $suffix ? :
215 42 1812 if (not defined($raw = $$node[4])) { }
631 1181 elsif (not ref $raw) { }
216 6 36 defined $default ? :
222 149 0 defined $_ ? :
223 1060 121 wantarray ? :
250 0 0 if (@_) { }
263 0 0 wantarray ? :
300 6 21 if (defined $name and is_attribute($node)) { }
307 14 13 if ($is_ee) { }
308 14 0 $tag ? :
314 13 0 $tag ? :
13 0 $tag ? :
326 14 13 if defined $bodystart and 5 == $bodystart or not defined $bodystart and $#$node < 5
328 9 4 defined $bodystart ? :
335 112 39 @_ ? :
336 9 142 @_ ? :
338 141 10 if (defined $from and defined $to)
340 0 210 if (not defined $_) { }
94 116 elsif (ref $_) { }
344 0 94 unless (defined $s)
354 151 0 if defined $close
374 0 514 if (not defined $found) { }
275 239 elsif (not defined $name and $found == 2 and $values[$found] =~ /^[\w\:\-\.]+$/) { }
386 497 17 if defined $attname
388 3 511 @typed > 1 ? :
397 6 56 if (defined $$node[1] and $$node[1] >= @QUOTE_CHAR) { }
403 0 56 if (@stringify_as == 1) { }
419 10 68 if (not defined $$node[5]) { }
422 34 34 $$node[1] ? :
423 3 65 ref $Q ? :
430 2 76 ref $_[0] ? :
436 5 126 unless defined $item
446 16 12 if ($is_ee) { }
455 72 43 if defined $$node[1]
460 124 0 if defined $$node[1]