Branch Coverage

blib/lib/HTML/Zoom/FilterBuilder.pm
Criterion Covered Total %
branch 82 94 87.2


line true false branch
37 5 9 @kadd ? :
45 0 4 if @_ == 1 and $_[0]{'name'} and $_[0]{'value'}
48 4 26 ref $_[0] eq 'HASH' ? :
71 9 10 exists $$a{$_} ? :
77 10 9 @kadd ? :
101 2 1 ref $args eq 'HASH' ? :
104 1 2 unless exists $$a{$name}
115 0 4 @_ > 1 ? :
126 1 3 if ($added) { }
1 2 elsif ($deleted) { }
136 2 2 $deleted || $added ? :
155 25 114 if ($into)
156 18 7 $content ? :
158 6 133 if ($$evt{'is_in_place_close'})
159 3 3 if $passthrough or $content
164 117 16 $content ? :
165 6 127 if ($filter)
166 4 2 if ($content) { }
180 8 205 unless $stream
182 65 383 if $$evt{'type'} eq 'OPEN'
183 198 250 if $$evt{'type'} eq 'CLOSE'
184 133 315 unless ($depth)
186 117 16 if $content
187 4 12 if $into
188 8 8 if $passthrough
191 151 164 if $into
192 232 83 if $content
193 72 243 if $passthrough
197 1 132 if ($flush_before)
198 0 1 if ($passthrough or $content) { }
204 126 7 $passthrough || $content || $flush_before ? :
212 0 3 unless $options
221 3 0 if ($coll) { }
222 3 0 if (ref $coll eq 'ARRAY') { }
0 0 elsif (ref $coll eq 'HASH') { }
241 0 3 ref $coll eq 'HASH' ? :
253 1 5 if ($$evt{'is_in_place_close'})
270 0 3 if ($$evt{'is_in_place_close'})
290 3 105 if ($$options{'content'} and ref $coll eq 'HASH' and $$coll{'is_in_place_close'})
309 3 6 ref $coll eq 'HASH' ? :
106 9 ref $coll eq 'ARRAY' ? :
115 0 $coll ? :
323 76 0 unless $options
331 2 16 if ($repeat_between)
344 2 16 if ($repeat_between) { }
347 3 2 @between && $s->peek ? :
366 12 3 unless $options