Branch Coverage

blib/lib/Stenciller.pm
Criterion Covered Total %
branch 40 48 83.3


line true false branch
116 0 7 if $@
118 0 7 unless ($plugin_class->does('Stenciller::Transformer'))
126 7 0 $self->is_utf8 ? :
141 268 8 if $environment ne 'next_stencil'
143 36 240 if (&any(sub {
56 184 elsif ($environment eq 'before_input') { }
56 128 elsif ($environment eq 'input') { }
53 75 elsif ($environment eq 'between') { }
56 19 elsif ($environment eq 'output') { }
19 0 elsif ($environment eq 'after_output') { }
144 21 15 unless $line =~ /$stencil_start/
147 11 4 defined $possible_hash && $possible_hash =~ /\{.*\}/ ? :
152 3 12 exists $settings->{'name'} ? :
166 41 15 unless $line =~ /$input_start/
170 41 15 unless $line =~ /$input_end/
174 38 15 unless $line =~ /$output_start/
178 41 15 unless $line =~ /$output_end/
182 11 8 unless $line =~ /$stencil_start/
188 0 7 if ($environment ne 'after_output')
198 0 15 unless &Stencil()->check($stencil)
199 0 15 if $stencil->skip
200 2 13 if not $stencil->has_input and $self->skip_if_input_empty
201 0 13 if not $stencil->has_output and $self->skip_if_output_empty
203 12 1 unless ($stencil->has_loop_values)