Branch Coverage

lib/Template/Service.pm
Criterion Covered Total %
branch 45 66 68.1


line true false branch
61 0 0 defined $params ? :
0 1227 if $self->{'DEBUG'}
64 1204 23 if $self->{'AUTO_RESET'}
69 1 1226 if $@
76 1226 0 unless ref $template eq 'CODE'
84 0 30 if $self->{'DEBUG'}
88 0 1226 if $error = $@
92 1220 6 unless $self->{'PROCESS'}
93 0 1226 if $self->{'DEBUG'}
97 17 1209 if ($error = $@)
99 4 13 unless defined($procout = $self->_recover(\$error))
102 1221 1 if (defined $procout)
106 0 3 if $self->{'DEBUG'}
110 0 1221 if $error = $@
117 0 17 if $self->{'DEBUG'}
121 0 1222 if $error = $@
127 4 1222 if ($error)
155 155 0 unless defined $delim
161 597 23 unless defined $data
162 19 4 unless ref $data eq 'ARRAY'
168 150 5 unless defined $config->{'PROCESS'}
172 5 150 defined $config->{'AUTO_RESET'} ? :
204 0 17 unless &blessed($$error) and $$error->isa('Template::Exception')
208 9 8 if $$error->type eq 'stop'
214 3 1 if (ref $handlers eq 'HASH') { }
215 1 2 if ($hkey = $$error->select_handler(keys %$handlers)) { }
2 0 elsif ($handler = $handlers->{'default'}) { }
217 0 1 if $self->{'DEBUG'}
221 0 2 if $self->{'DEBUG'}
229 0 1 if $self->{'DEBUG'}
233 0 4 if ($@)
242 0 4 if ($@)
267 0 0 if ref $error