Branch Coverage

lib/Template/Plugins.pm
Criterion Covered Total %
branch 34 52 65.3


line true false branch
95 0 0 defined $args ? :
0 0 defined $context ? :
0 209 if $$self{'DEBUG'}
109 3 45 if $error
115 2 204 if (ref $factory eq 'CODE') { }
116 0 2 unless defined($plugin = &$factory(@$args))
120 0 201 unless defined($plugin = $factory->new(@$args))
124 3 203 if ($error = $@)
127 0 3 $$self{'TOLERANT'} ? :
154 145 4 unless defined $pbase
155 3 146 unless ref $pbase eq 'ARRAY'
158 146 3 if $PLUGIN_BASE
185 36 12 if ($module = $$self{'PLUGINS'}{$name} || $$self{'PLUGINS'}{lc $name}) { }
191 0 36 if $$self{'DEBUG'}
204 0 13 if $$self{'DEBUG'}
207 8 5 unless $@
209 0 5 unless $@ =~ /^Can\'t locate $file\.pm/
214 44 4 if ($ok) { }
1 3 elsif ($$self{'LOAD_PERL'}) { }
215 0 44 if $$self{'DEBUG'}
219 0 44 if ($@ or not $factory)
227 0 1 if ($@) { }
243 45 3 if ($factory) { }
0 3 elsif ($error) { }
244 0 45 if $$self{'DEBUG'}
249 0 0 $$self{'TOLERANT'} ? :