Branch Coverage

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


line true false branch
61 0 0 defined $params ? :
0 1210 if $$self{'DEBUG'}
64 1187 23 if $$self{'AUTO_RESET'}
69 1 1209 if $@
76 1209 0 unless ref $template eq 'CODE'
84 0 30 if $$self{'DEBUG'}
88 0 1209 if $error = $@
92 1203 6 unless $$self{'PROCESS'}
93 0 1209 if $$self{'DEBUG'}
97 15 1194 if ($error = $@)
99 2 13 unless defined($procout = $self->_recover(\$error))
102 1206 1 if (defined $procout)
106 0 3 if $$self{'DEBUG'}
110 0 1206 if $error = $@
117 0 17 if $$self{'DEBUG'}
121 0 1207 if $error = $@
127 2 1207 if ($error)
155 145 0 unless defined $delim
161 557 23 unless defined $data
162 19 4 unless ref $data eq 'ARRAY'
168 140 5 unless defined $$config{'PROCESS'}
172 5 140 defined $$config{'AUTO_RESET'} ? :
204 0 15 unless blessed $$error and $$error->isa('Template::Exception')
208 9 6 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