Condition Coverage

lib/Template/Provider.pm
Criterion Covered Total %
condition 54 83 65.0


and 3 conditions

line !l l&&!r l&&r condition
222 2 3 12 defined $path and not $error
270 206 1 405 @ipaths and --$count
276 354 0 5 ref $dir and UNIVERSAL::can($dir, 'paths')
359 150 0 0 defined $size and $size == 1 || $size < 0
538 36 2 3 defined $$self{'DEFAULT'} and $name ne $$self{'DEFAULT'}
760 103 0 0 defined $size and not $size
769 103 0 0 defined $size and $$self{'SLOTS'} >= $size
874 0 0 14 not defined $error and defined $$data{'time'}

or 2 conditions

line l !l condition
207 12 0 $self->paths || (return $self->error, 255)
271 405 0 shift @ipaths || (next)
286 5 0 $dir->paths || (return $self->error($dir->error))
343 53 97 $$params{'INCLUDE_PATH'} || '.'
344 4 146 $$params{'COMPILE_DIR'} || ''
399 10 140 $$params{'COMPILE_EXT'} || ''
400 7 143 $$params{'ABSOLUTE'} || 0
401 1 149 $$params{'RELATIVE'} || 0
402 1 149 $$params{'TOLERANT'} || 0
520 194 1 $self->paths || (return $self->error, 255)
838 125 0 'Template::Config'->parser($$self{'PARAMS'}) || (return 'Template::Config'->error, 255)
918 31 160 $self->_compiled_filename($template_name) || (return)
919 18 13 (stat $compiled_name)[9] || (return)
920 18 0 $self->_template_modified($template_name) || (return)
938 312 0 shift() || (return)
995 103 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 150 $$params{'DOCUMENT'} || $DOCUMENT
408 0 0 150 $$params{'STAT_TTL'} || $STAT_TTL
532 151 2 140 not $error or $error == 255
551 62 0 233 $compext or $compdir
598 166 1198 10 defined $alias or ref $name
685 0 2 0 not defined $template_mtime or $template_mtime != $$slot[3]
838 1162 125 0 $$self{'PARSER'} ||= 'Template::Config'->parser($$self{'PARAMS'}) || (return 'Template::Config'->error, 255)
881 14 0 0 $ctime or $ctime eq 0