Branch Coverage

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


line true false branch
110 6 10 if ($self->{'forbid_undef'})
111 3 3 if (my(%errors) = %{$self->{'_undefined'};})
115 6 10 if ($self->{'forbid_unused'})
118 4 6 unless ($self->{'_used'}{$var})
122 3 3 if (my $unused = join(', ', sort(@unused)))
127 5 11 if ($errors)
135 11 0 if (@_) { }
0 0 elsif (defined wantarray) { }
165 3 17 defined $4 ? :
178 8 8 eval { do { $2 eq 'U' xor not !$self->_expression($stash, $4) } } ? :
2 16 $2 eq 'F' ? :
199 1 35 if $self->{'TRIM'}
210 0 2 unless (ref $list eq 'ARRAY')
227 2 81 if substr($_, 0, 1) eq '_'
231 7 74 if ($type eq 'ARRAY') { }
72 2 elsif ($type eq 'HASH') { }
2 0 elsif ($type) { }
232 1 6 unless /^(?:0|[0-9]\d*)\z/
245 3 53 if ($_[0]{'forbid_undef'} and not defined $cursor)