lib/Template/Plugins.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 18 | 23 | 78.2 |
line | l | !l | condition |
---|---|---|---|
104 | 146 | 64 | $args ||= [] |
151 | 1 | 158 | $plugins ||= {} |
162 | 0 | 159 | $params->{'TOLERANT'} || 0 |
163 | 2 | 157 | $params->{'LOAD_PERL'} || 0 |
164 | 1 | 158 | $factory || {} |
165 | 4 | 155 | $params->{'DEBUG'} || 0 |
220 | 0 | 0 | $@ || 'load() returned a false value' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
107 | 162 | 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 |