Condition Coverage

web/cgi-bin/yatt.lib/YATT/LRXML/Node.pm
Criterion Covered Total %
condition 42 52 80.7


and 3 conditions

line !l l&&!r l&&r condition
183 2 0 4 $_[0][0] == 7 and defined $_[0][1]
300 0 21 6 defined $name and is_attribute($node)
326 10 9 8 defined $bodystart and 5 == $bodystart
9 4 6 not defined $bodystart and $#$node < 5
338 10 0 141 defined $from and defined $to
361 15 2 33 ref $_ && is_primary_attribute($_)
374 222 12 280 not defined $name and $found == 2
234 5 275 not defined $name and $found == 2 and $values[$found] =~ /^[\w\:\-\.]+$/
397 9 47 6 defined $node->[1] and $node->[1] >= @QUOTE_CHAR

or 2 conditions

line l !l condition
221 59 1122 $first || 0
223 10 111 $sep || ':'
334 101 50 $open ||= ''
22 129 $sep ||= ''
33 118 $close ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
177 48 135 1 not defined $_[0][1] or $_[0][1] < @QUOTE_CHAR
191 0 0 138 not defined $type or $type eq ''
259 0 0 0 $node->[3] ||= do { my($obj, $meth) = splice(@_, 0, 2); $obj->$meth(@_) }
324 17 0 10 shift() || node_beginning_of_body($node)
326 8 0 19 defined $bodystart and 5 == $bodystart or not defined $bodystart and $#$node < 5