Branch Coverage

blib/lib/Template/Tiny/Strict.pm
Criterion Covered Total %
branch 33 38 86.8


line true false branch
107 6 10 if ($self->{'forbid_undef'})
108 3 3 if (my(%errors) = %{$self->{'_undefined'};})
112 6 10 if ($self->{'forbid_unused'})
115 4 6 unless ($self->{'_used'}{$var})
119 3 3 if (my $unused = join(', ', sort(@unused)))
124 5 11 if ($errors)
129 11 0 if (@_) { }
0 0 elsif (defined wantarray) { }
159 3 17 defined $4 ? :
172 8 8 eval { do { $2 eq 'U' xor not !$self->_expression($stash, $4) } } ? :
2 16 $2 eq 'F' ? :
193 1 35 if $self->{'TRIM'}
204 0 2 unless (ref $list eq 'ARRAY')
221 2 81 if substr($_, 0, 1) eq '_'
225 7 74 if ($type eq 'ARRAY') { }
72 2 elsif ($type eq 'HASH') { }
2 0 elsif ($type) { }
226 1 6 unless /^(?:0|[0-9]\d*)\z/
239 3 53 if ($_[0]{'forbid_undef'} and not defined $cursor)