Condition Coverage

lib/Template/Config.pm
Criterion Covered Total %
condition 26 53 49.0


and 3 conditions

line !l l&&!r l&&r condition
99 0 2 137 defined $_[0] && ref $_[0] eq 'HASH'
117 0 4 155 defined $_[0] && ref $_[0] eq 'HASH'
136 0 1 158 defined $_[0] && ref $_[0] eq 'HASH'
155 0 1 158 defined $_[0] && ref $_[0] eq 'HASH'
191 0 1 161 defined $_[0] && ref $_[0] eq 'HASH'
209 1 1 156 defined $_[0] && ref $_[0] eq 'HASH'
227 0 1 154 defined $_[0] && ref $_[0] eq 'HASH'
246 0 0 7 defined $_[0] && ref $_[0] eq 'HASH'

or 2 conditions

line l !l condition
265 0 2 $Template::Config::INSTDIR || (return $class->error('no installation directory'))

or 3 conditions

line l !l&&r !l&&!r condition
103 139 0 0 $Template::Config::PARSER->new($params) || $class->error('failed to create parser: ', $Template::Config::PARSER->error)
121 159 0 0 $Template::Config::PROVIDER->new($params) || $class->error('failed to create template provider: ', $Template::Config::PROVIDER->error)
140 159 0 0 $Template::Config::PLUGINS->new($params) || $class->error('failed to create plugin provider: ', $Template::Config::PLUGINS->error)
159 159 0 0 $Template::Config::FILTERS->new($params) || $class->error('failed to create filter provider: ', $Template::Config::FILTERS->error)
177 174 0 0 $Template::Config::ITERATOR->new($list, @_) || $class->error('failed to create iterator: ', $Template::Config::ITERATOR->error)
195 162 0 0 $Template::Config::STASH->new($params) || $class->error('failed to create stash: ', $Template::Config::STASH->error)
213 158 0 0 $Template::Config::CONTEXT->new($params) || $class->error('failed to create context: ', $Template::Config::CONTEXT->error)
231 155 0 0 $Template::Config::SERVICE->new($params) || $class->error('failed to create context: ', $Template::Config::SERVICE->error)
250 7 0 0 $Template::Config::CONSTANTS->new($params) || $class->error('failed to create constants namespace: ', $Template::Config::CONSTANTS->error)