lib/Template/Plugins.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 18 | 23 | 78.2 |
line | l | !l | condition |
---|---|---|---|
104 | 145 | 64 | $args ||= [] |
151 | 1 | 148 | $plugins ||= {} |
162 | 0 | 149 | $$params{'TOLERANT'} || 0 |
163 | 2 | 147 | $$params{'LOAD_PERL'} || 0 |
164 | 1 | 148 | $factory || {} |
165 | 4 | 145 | $$params{'DEBUG'} || 0 |
220 | 0 | 0 | $@ || 'load() returned a false value' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
107 | 161 | 47 | 1 | $$self{'FACTORY'}{$name} ||= do { ($factory, $error) = $self->_load($name, $context); return $factory, $error if $error; $factory } |
185 | 24 | 12 | 12 | $$self{'PLUGINS'}{$name} || $$self{'PLUGINS'}{lc $name} |
219 | 0 | 0 | 44 | $@ or not $factory |