Condition Coverage

lib/Template/Provider.pm
Criterion Covered Total %
condition 55 83 66.2


and 3 conditions

line !l l&&!r l&&r condition
222 2 3 12 defined $path and not $error
270 209 1 408 @ipaths and --$count
276 357 0 5 ref $dir and UNIVERSAL::can($dir, 'paths')
359 160 0 0 defined $size and $size == 1 || $size < 0
539 37 2 3 defined $self->{'DEFAULT'} and $name ne $self->{'DEFAULT'}
760 104 0 0 defined $size and not $size
769 104 0 0 defined $size and $self->{'SLOTS'} >= $size
874 0 0 17 not defined $error and defined $data->{'time'}

or 2 conditions

line l !l condition
209 12 0 $self->paths || (return $self->error, 255)
271 408 0 shift @ipaths || (next)
286 5 0 $dir->paths || (return $self->error($dir->error))
343 53 107 $params->{'INCLUDE_PATH'} || '.'
344 7 153 $params->{'COMPILE_DIR'} || ''
399 10 150 $params->{'COMPILE_EXT'} || ''
400 7 153 $params->{'ABSOLUTE'} || 0
401 1 159 $params->{'RELATIVE'} || 0
402 1 159 $params->{'TOLERANT'} || 0
520 197 1 $self->paths || (return $self->error, 255)
838 134 0 'Template::Config'->parser($self->{'PARAMS'}) || (return 'Template::Config'->error, 255)
918 34 158 $self->_compiled_filename($template_name) || (return)
919 16 18 (stat $compiled_name)[9] || (return)
920 16 0 $self->_template_modified($template_name) || (return)
938 314 0 shift() || (return)
995 104 0 $self->_template_modified($name) || (return $time ? 1 : 0)

or 3 conditions

line l !l&&r !l&&!r condition
359 0 0 0 $size == 1 || $size < 0
403 0 0 160 $params->{'DOCUMENT'} || $DOCUMENT
408 0 0 160 $params->{'STAT_TTL'} || $STAT_TTL
532 152 3 141 not $error or $error == 255
551 62 4 231 $compext or $compdir
598 169 1216 10 defined $alias or ref $name
685 0 2 0 not defined $template_mtime or $template_mtime != $slot->[3]
838 1174 134 0 $self->{'PARSER'} ||= 'Template::Config'->parser($self->{'PARAMS'}) || (return 'Template::Config'->error, 255)
881 17 0 0 $ctime or $ctime eq 0