Condition Coverage

blib/lib/YATT/Lite/LRXML/ParseBody.pm
Criterion Covered Total %
condition 53 69 76.8


and 3 conditions

line !l l&&!r l&&r condition
40 1 17 51 defined $parent->[9] and $self->{'template'}->node_body_source($parent) =~ /(\r?\n)\Z/
45 1 4 59 @$sink and not ref $sink->[-1]
5 11 48 @$sink and not ref $sink->[-1] and $sink->[-1] =~ s/(\r?\n)\Z//
76 27 162 0 not $is_opt and $elem->[5]
86 162 17 10 $is_opt and not $+{'empty_elem'}
103 12 82 0 !$is_opt && $+{'empty_elem'}
107 63 90 9 not $has_nonspace++ and $parent
132 28 13 2 not $has_nonspace++ and $parent
159 251 64 1 $close and not $is_closed
164 251 64 0 $parent and $parent->[5]
175 59 132 144 nonspace($1) and not $$rhas_nonspace++
191 93 51 nonspace($1) and not $$rhas_nonspace++ and $parent
191 84 137 0 nonspace($1) and not $$rhas_nonspace++
221 0 0 nonspace($1) and not $$rhas_nonspace++ and $parent
230 0 0 17 length $_ and s/^(.*?)$self->{'re_entopn'}//s
261 0 0 64 defined $_[0] and ref $_[0] eq 'ARRAY'

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
18 518 246 252 s/^(.*?)$self->{'re_body'}//sx or my $retry = $self->_get_chunk($sink)
23 210 0 303 $+{'entity'} or $+{'special'}
75 71 17 101 not $+{'empty_elem'} or $is_opt
121 57 7 0 $$bodyStartRef //= $bodystartln
232 10 0 0 $+{'entity'} or $+{'special'}