Branch Coverage

blib/lib/YATT/Lite/LRXML/ParseBody.pm
Criterion Covered Total %
branch 93 104 89.4


line true false branch
19 336 713 if $retry
23 5 708 if ($+{'lcmsg'}) { }
340 368 elsif ($+{'entity'} or $+{'special'}) { }
325 43 elsif (my $path = $+{'elem'}) { }
43 0 elsif ($path = $+{'pi'}) { }
24 5 0 if ($+{'msgopn'}) { }
38 71 254 if ($+{'clo'})
40 52 19 if (defined $parent->[9] and $self->{'template'}->node_body_source($parent) =~ /(\r?\n)\Z/)
45 49 16 if (@$sink and not ref $sink->[-1] and $sink->[-1] =~ s/(\r?\n)\Z//)
56 27 227 $is_opt ? :
59 108 146 if (my(@atts) = $self->parse_attlist($_))
66 0 254 unless s[^(?/)? >(\r?\n)?][]sx
75 27 63 $is_opt ? :
90 164 if not $+{'empty_elem'} or $is_opt
76 63 164 if not $is_opt and $elem->[5]
79 181 73 $1 ? :
81 98 156 if $2
84 132 122 if $self->{'cf_debug'}
86 10 244 if ($is_opt and not $+{'empty_elem'})
90 227 27 if (not $is_opt) { }
17 10 elsif ($+{'empty_elem'}) { }
103 40 58 !$is_opt && $+{'empty_elem'} ? :
98 156 if $2
106 27 227 $is_opt ? :
107 10 217 if not $has_nonspace++ and $parent
114 73 181 if (not $+{'empty_elem'}) { }
17 164 elsif ($is_opt) { }
119 0 73 $+{'empty_elem'} ? :
128 125 122 if $self->{'cf_debug'}
132 2 41 if not $has_nonspace++ and $parent
134 0 43 unless (s/^(.*?)\?>(\r?\n)?//s)
138 6 37 if $2
140 6 37 if $2
145 6 37 if ($nl)
156 481 489 if $self->{'cf_debug'}
159 1 437 if ($close and not $is_closed)
164 66 0 if ($parent and $parent->[5])
172 450 280 if ($self->add_posinfo(length $1, 1))
175 51 287 if nonspace($1) and not $$rhas_nonspace++ and $parent
179 365 365 if $self->{'cf_debug'}
188 169 180 if $self->{'cf_debug'}
191 0 195 if nonspace($1) and not $$rhas_nonspace++ and $parent
197 1 70 unless (s/^>//sx)
201 69 1 defined $close ? :
215 5 0 if (s/^(?:\#(\w+))?\[{2,};//) { }
216 2 3 if $1
232 0 17 if ($+{'msgopn'}) { }
2 15 elsif ($+{'msgsep'}) { }
5 10 elsif ($+{'msgclo'}) { }
10 0 elsif ($+{'entity'} or $+{'special'}) { }
261 0 66 unless defined $_[0] and ref $_[0] eq 'ARRAY'
262 1 65 unless (@{$_[0];})