Branch Coverage

blib/lib/HTML/Zoom/FilterBuilder.pm
Criterion Covered Total %
branch 79 94 84.0


line true false branch
39 2 4 $e ? :
47 0 0 if @_ == 1 and $_[0]{'name'} and $_[0]{'value'}
49 18 0 @_ > 1 ? :
78 8 10 $e ? :
8 10 $e ? :
85 2 1 ref $args eq 'HASH' ? :
88 1 2 unless exists $$a{$name}
99 0 4 @_ > 1 ? :
110 1 3 if ($added) { }
1 2 elsif ($deleted) { }
120 2 2 $deleted || $added ? :
139 25 110 if ($into)
140 18 7 $content ? :
142 6 129 if ($$evt{'is_in_place_close'})
143 3 3 if $passthrough or $content
148 115 14 $content ? :
149 4 125 if ($filter)
150 4 0 if ($content) { }
164 6 193 unless $stream
166 61 375 if $$evt{'type'} eq 'OPEN'
167 190 246 if $$evt{'type'} eq 'CLOSE'
168 129 307 unless ($depth)
170 115 14 if $content
171 4 10 if $into
172 6 8 if $passthrough
175 151 156 if $into
176 232 75 if $content
177 64 243 if $passthrough
181 1 128 if ($flush_before)
182 0 1 if ($passthrough or $content) { }
188 122 7 $passthrough || $content || $flush_before ? :
196 0 3 unless $options
205 3 0 if ($coll) { }
206 3 0 if (ref $coll eq 'ARRAY') { }
0 0 elsif (ref $coll eq 'HASH') { }
225 0 3 ref $coll eq 'HASH' ? :
237 1 5 if ($$evt{'is_in_place_close'})
254 0 3 if ($$evt{'is_in_place_close'})
274 3 103 if ($$options{'content'} and ref $coll eq 'HASH' and $$coll{'is_in_place_close'})
293 3 6 ref $coll eq 'HASH' ? :
104 9 ref $coll eq 'ARRAY' ? :
113 0 $coll ? :
307 74 0 unless $options
315 2 16 if ($repeat_between)
328 2 16 if ($repeat_between) { }
331 3 2 @between && $s->peek ? :
350 12 3 unless $options