Condition Coverage

blib/lib/HTML/KTemplate.pm
Criterion Covered Total %
condition 42 69 60.8


and 3 conditions

line !l l&&!r l&&r condition
114 55 3 1 @_ % 2 != 0 and @_ >= 3
150 5 41 0 defined $_[0] and length $_[0]
163 9 0 22 ref $$root{$key} eq 'ARRAY' and ref $$root{$key}[$#{$$root{$key};}] eq 'HASH'
216 67 1 1 $$self{'config'}{'no_includes'} and scalar @{$$self{'files'};} != 0
288 0 0 0 $$self{'config'}{'blind_cache'} and defined $filedata
290 0 0 0 defined $filedata and $$filedata[1] == $mtime
324 62 0 0 $$self{'config'}{'blind_cache'} and defined $$HTML::KTemplate::CACHE{$filepath}
336 23 0 0 $$self{'config'}{'blind_cache'} and defined $$HTML::KTemplate::CACHE{$filepath}
343 2 0 0 $$self{'config'}{'blind_cache'} and defined $$HTML::KTemplate::CACHE{$filepath}
372 4 0 63 $HTML::KTemplate::BLOCK_START_TAG eq $HTML::KTemplate::INCLUDE_START_TAG && $HTML::KTemplate::BLOCK_END_TAG eq $HTML::KTemplate::INCLUDE_END_TAG
463 60 47 170 $type && !($type =~ /^[Ii]/)
467 107 8 162 $block and $text =~ s/\r?\n[ \t]*\z/ /
500 8 78 0 defined $ident and uc $ident eq 'BEGIN' || uc $ident ne $idents[0][0]
2 76 0 defined $ident and uc $ident eq 'BEGIN' || uc $ident ne $idents[0][0] and $ident ne $idents[0][1]
530 7 5 0 defined $ident and $ident ne $idents[0][1]
561 0 55 12 $HTML::KTemplate::CHOMP and $block
725 237 0 51 $$self{'config'}{'loop_vars'} and @ident == 0
237 36 15 $$self{'config'}{'loop_vars'} and @ident == 0 and exists $$self{'loop'}[0]{$last_key}
734 22 245 160 @ident == 0 and exists $$hash{$last_key}

or 3 conditions

line l !l&&r !l&&!r condition
451 184 0 93 $4 || $6
500 0 76 2 uc $ident eq 'BEGIN' || uc $ident ne $idents[0][0]
609 0 0 1 not defined $value or ref $value
773 0 0 0 ref $fh eq 'GLOB' || ref \$fh eq 'GLOB'