Condition Coverage

blib/lib/YATT/Lite/LRXML/ParseBody.pm
Criterion Covered Total %
condition 59 75 78.6


and 2 conditions

line l !l condition
106 17 10 0 do { not $+{'empty_elem'} } && do { () }
201 66 3 0 do { $path ne $close } && do { die $self->synerror_at($self->{'endln'}, 'TAG Mismatch! <%s> closed by ', $close, $path) }

and 3 conditions

line !l l&&!r l&&r condition
40 1 18 52 defined $parent->[9] and $self->{'template'}->node_body_source($parent) =~ /(\r?\n)\Z/
45 1 4 61 @$sink and not ref $sink->[-1]
5 12 49 @$sink and not ref $sink->[-1] and $sink->[-1] =~ s/(\r?\n)\Z//
76 27 164 63 not $is_opt and $elem->[5]
86 227 17 10 $is_opt and not $+{'empty_elem'}
103 12 46 40 !$is_opt && $+{'empty_elem'}
107 69 148 10 not $has_nonspace++ and $parent
132 28 13 2 not $has_nonspace++ and $parent
159 371 66 1 $close and not $is_closed
164 371 0 66 $parent and $parent->[5]
175 112 151 187 nonspace($1) and not $$rhas_nonspace++
263 136 51 nonspace($1) and not $$rhas_nonspace++ and $parent
191 154 195 0 nonspace($1) and not $$rhas_nonspace++
349 0 0 nonspace($1) and not $$rhas_nonspace++ and $parent
230 0 0 17 length $_ and s/^(.*?)$self->{'re_entopn'}//s
261 0 0 66 defined $_[0] and ref $_[0] eq 'ARRAY'

or 2 conditions

line l !l condition
37 325 0 $+{'opt'} // ''
94 5 12 $parent->[8] ||= []
97 0 10 $parent->[7] ||= []

or 3 conditions

line l !l&&r !l&&!r condition
18 713 336 372 s/^(.*?)$self->{'re_body'}//sx or my $retry = $self->_get_chunk($sink)
23 338 0 370 $+{'entity'} or $+{'special'}
75 73 17 164 not $+{'empty_elem'} or $is_opt
121 58 8 0 $$bodyStartRef //= $bodystartln
232 10 0 0 $+{'entity'} or $+{'special'}