Condition Coverage

blib/lib/HTML/CMTemplate.pm
Criterion Covered Total %
condition 49 89 55.0


and 3 conditions

line !l l&&!r l&&r condition
600 0 39 20 defined $text and $text ne ''
1595 0 2 2 not $self->__is_empty__ and $node->type eq 'TPL'
1641 0 5 10 not $self->__is_empty__ and $node->type eq 'TPL'
2519 8 0 0 defined $ra_cleanref and ref $ra_cleanref eq 'HASH'
2522 8 0 0 defined $ra_dirtyref and ref $ra_dirtyref eq 'HASH'

or 2 conditions

line l !l condition
543 95 1 shift() || 0
591 59 0 $args{'depth'} || 0
628 6 0 $args{'depth'} || 0
658 2 0 $args{'depth'} || 0
685 3 0 $args{'depth'} || 0
714 3 0 $args{'depth'} || 0
758 1 0 $args{'depth'} || 0
787 0 1 $args{'depth'} || 0
824 2 0 $args{'depth'} || 0
846 2 0 $args{'depth'} || 0
863 1 0 $args{'depth'} || 0
881 12 0 $args{'depth'} || 0
899 1 0 $args{'depth'} || 0
920 1 0 $args{'depth'} || 0
1023 1 8 shift() || 0
1207 1 8 shift() || []
1385 1 0 shift() || 0
1427 50 0 shift() || 'UNKNOWN'
2463 8 0 stat $filename || die("Failed to stat file $filename")
2589 0 0 $_[0] || 0
0 0 $_[0] || 0
0 0 $_[0] || 0
2677 8 0 $args{'packagename'} || ''
2678 0 8 $args{'depth'} || 0
2679 1 7 $args{'warn'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
1340 0 0 0 $$self{'parent'} || $self
1346 0 8 0 $$self{'root'} || $self
1603 2 0 0 $node->type eq 'blkIF' or $node->type eq 'blkELIF'
1650 1 2 2 $node->type eq 'blkIF' or $node->type eq 'blkELIF'
1693 9 3 8 $type eq 'TPL' or $type eq 'blkELSE'
12 2 6 $type eq 'TPL' or $type eq 'blkELSE' or $type eq 'blkELIF'
1764 4 2 3 $type eq 'TPL' or $type eq 'blkELSE'
2054 1 0 0 "<$filename" || do { $self->__debug__('Failed to open raw file $filename: $!'); die "Failed to open raw include: $filename\n" }