Branch Coverage

blib/lib/Decl/Template.pm
Criterion Covered Total %
branch 22 90 24.4


line true false branch
43 12 0 unless $$self{'left'}
44 12 0 unless $$self{'right'}
49 0 12 unless $$self{'valuator'}
50 0 12 unless defined $$self{'leave_misses'}
52 0 12 unless $$self{'spanners'}
53 12 0 unless defined $$self{'spanners'}{'with'}
54 12 0 unless defined $$self{'spanners'}{'if'}
55 12 0 unless defined $$self{'spanners'}{'repeat'}
112 0 0 if $c
147 0 0 if ($test)
152 0 0 if ($$check[0] eq 'elif')
154 0 0 if ($test)
158 0 0 if ($$check[0] eq 'else')
170 0 0 if (ref $loop eq 'ARRAY') { }
0 0 elsif (not defined $loop) { }
187 0 0 unless (@_)
189 0 0 if ($$else[0] eq 'else')
201 0 0 if ($$_[0] eq 'before')
205 0 0 if ($$_[0] eq 'alt')
209 0 0 if ($$_[0] eq 'after')
213 0 0 if ($$_[0] eq 'body')
223 0 0 if @_
289 0 2 if (ref $template eq 'ARRAY') { }
304 2 0 unless ($on)
307 2 0 if ($literal =~ /\n([^\n]*?)\z/s) { }
309 2 0 if ($1 =~ /^\s*$/)
319 0 0 unless ($piece =~ /^[+\.]/)
328 0 0 if ($piece =~ /^\+/)
329 0 0 if ($curspan eq '') { }
341 0 0 if ($command eq 'end')
342 0 0 if ($curspan eq '') { }
357 2 0 if ($curspan eq '') { }
364 0 2 if wantarray
381 0 2 unless defined $values
382 2 0 unless defined $valuator
391 0 2 unless defined $piece
392 2 0 if (not ref $piece) { }
396 0 0 unless ref $piece eq 'ARRAY'
399 0 0 if ($$piece[0] eq 'lookup') { }
401 0 0 unless (defined $value)
402 0 0 if ($$self{'leave_misses'}) { }
414 0 2 if (ref $value eq 'ARRAY')
426 2 0 if ($value =~ /\n([^\n]*?)\z/s) { }
427 2 0 if ($literal) { }
454 0 2 unless defined $template