Condition Coverage

blib/lib/HTML/Template/Compiled.pm
Criterion Covered Total %
condition 83 147 56.4


and 3 conditions

line !l l&&!r l&&r condition
185 0 54 0 defined $filename and length $filename
310 4 87 72 defined $fname and not $self->get_scalar
91 0 72 defined $fname and not $self->get_scalar and not $self->get_filehandle
364 0 33 0 defined $dir and not -d $dir
407 107 7 37 $cached and $self->uptodate($times, $args)
515 4 87 70 my $file = $self->get_file and not $self->get_scalar
565 0 31 0 defined $cache and not -d $cache
654 40 0 0 'File::Spec'->file_name_is_absolute($filename) and -f $filename
661 0 1 39 $path and @$path
744 140 5 0 $args->{'plugin'} and ref $args->{'plugin'} ne 'ARRAY'
1290 33 11 0 $item->{'type'} eq 'INCLUDE' && $include_info{$_}
1307 5 0 0 $item->{'type'} eq 'INCLUDE' && $include_info{$_}
1321 9 0 0 $item->{'type'} eq 'INCLUDE' && $include_info{$_}
1513 0 2 0 $LAST_EXCEPTION and $LAST_EXCEPTION =~ /at (?:\(eval \d*\)|\S+) line (\d+)\./

or 2 conditions

line l !l condition
6 0 36 $ENV{'HTC_DEBUG'} || 0
277 50 136 $self->get_cache_dir || ''
284 33 0 $cache || ''
330 201 0 $args ||= {}
331 5 196 $args->{'plugin'} || []
580 28 3 $self->VERSION || '0.01'
630 9 1 $t->VERSION || '0.01'
634 3 0 $t->get_plugins || []
747 6 139 delete $args->{'cache_debug'} || 0
781 6 139 delete $args->{'debug_file'} || 0
835 4 127 $args{'warnings'} || 0
961 3 3 $actions->{'escape'} || {}
1018 27 8 $self->get_globalstack || []
1042 0 0 $self->get_globalstack || []
1367 108 23 $self->[0] || {}

or 3 conditions

line l !l&&r !l&&!r condition
115 1 0 0 ref $self || $self
122 0 0 0 ref $self || $self
128 0 1 0 ref $self || $self
135 0 1 0 ref $self || $self
142 1 0 0 ref $self || $self
153 1 0 0 ref $self || $self
188 1 0 52 exists $args{'scalarref'} or exists $args{'arrayref'}
0 0 52 exists $args{'scalarref'} or exists $args{'arrayref'} or exists $args{'filehandle'}
211 0 0 4 exists $args{'scalarref'} or exists $args{'arrayref'}
0 0 4 exists $args{'scalarref'} or exists $args{'arrayref'} or exists $args{'filename'}
234 0 0 2 exists $args{'scalarref'} or exists $args{'filehandle'}
0 0 2 exists $args{'scalarref'} or exists $args{'filehandle'} or exists $args{'filename'}
247 0 0 87 exists $args{'arrayref'} or exists $args{'filehandle'}
0 0 87 exists $args{'arrayref'} or exists $args{'filehandle'} or exists $args{'filename'}
284 7 11 22 not $htc or needs_new_check($cache || '', $filename, $self->get_expire_time)
332 58 0 143 $self->get_debug || $args->{'debug'}
360 5 0 28 $self->get_scalar || $self->get_filehandle
597 3 0 0 ref $plug || $plug
630 0 7 3 ($t->VERSION || '0.01') ne $cached_version or not $t->uptodate($cache->{'times'})
654 0 0 40 not $path or 'File::Spec'->file_name_is_absolute($filename) and -f $filename
836 2 2 127 $warnings eq 1 or $warnings eq 'fatal'
887 0 98 0 $parser ||= $self->parser_class->default
943 2 1 0 ref $plug || $plug
959 3 3 0 ref $plug || $plug
967 3 3 0 ref $pclass or $pclass