Condition Coverage

blib/lib/Text/Haml.pm
Criterion Covered Total %
condition 98 124 79.0


and 3 conditions

line !l l&&!r l&&r condition
22 0 0 22 defined $dir and -d $dir
0 0 22 defined $dir and -d $dir and -w _
268 134 455 34 $prev and $$prev{'type'} eq 'filter'
269 8 4 1 $i + 1 < @lines and $line eq ''
394 27 44 30 $type eq 'perl' and $line =~ s/^$attributes_end//
44 17 10 $type eq 'html' and $line =~ s/^$attributes_end2//
479 294 232 0 $$el{'type'} eq 'tag' and $line =~ s/$autoclose_token$// || grep({$$el{'name'} eq $_;} @AUTOCLOSE)
490 290 216 20 $line and $line =~ s/(\s*)$multiline_token$//
603 22 26 490 not exists $$el{'escape'} and $self->escape_html
26 20 2 exists $$el{'escape'} and $$el{'escape'} == 1
614 223 290 25 $prev_stack_el and $$prev_stack_el{'type'} eq 'comment'
615 5 12 8 $$el{'line'} and $$prev_stack_el{'level'} >= $$el{'level'}
626 114 167 240 $$el{'line'} and $prev_stack_el
281 176 64 $$el{'line'} and $prev_stack_el and $$prev_stack_el{'level'} >= $$el{'level'}
657 196 3 9 $$el{'autoclose'} && $self->format eq 'xhtml'
685 0 1 2 $$value{'type'} eq 'boolean' and $$value{'text'}
727 135 56 17 $$el{'text'} and $$el{'expr'}
0 109 26 $next_el and $$next_el{'level'} <= $$el{'level'}
759 114 60 139 $$el{'line'} and $$el{'type'} eq 'text'
784 0 28 7 $prev_el and $$prev_el{'level'} > $$el{'level'}
788 0 28 7 $next_el and $$next_el{'level'} > $$el{'level'}
853 0 12 106 $self->tape->[-1] and $self->tape->[-1]{'line'} eq ''
891 206 0 0 $text =~ /^\"/ and $text =~ /\"$/
1067 3 3 0 -e $self->cache_path and $self->_eq_mtime || $self->_eq_checksum
1121 7 0 1 'File::Spec'->file_name_is_absolute($path) and -r $path

or 2 conditions

line l !l condition
352 14 17 $$el{'name'} ||= 'div'
353 5 26 $$el{'class'} ||= []
359 8 5 $$el{'name'} ||= 'div'
395 3 0 $lines[++$i] || (last)
669 3 3 $$el{'class'} ||= []
679 1 2 $$el{'id'} ||= ''
1208 10 6 $type ||= ''
1209 1 15 $encoding ||= 'utf-8'

or 3 conditions

line l !l&&r !l&&!r condition
131 0 26 0 $$self{'helpers_arg'} ||= $self
269 21 0 13 $$prev{'level'} < $$el{'level'} or $i + 1 < @lines and $line eq ''
440 5 2 7 $value eq 'true' or $value eq 'false'
479 3 11 218 $line =~ s/$autoclose_token$// || grep({$$el{'name'} eq $_;} @AUTOCLOSE)
493 2 4 14 not $$tape[-1] or ref $$tape[-1]{'text'} ne 'ARRAY'
495 6 0 0 $$el{'line'} ||= $line . "$1|"
551 0 118 0 $self->namespace || ref($self) . '::template'
603 490 0 48 not exists $$el{'escape'} and $self->escape_html or exists $$el{'escape'} and $$el{'escape'} == 1
685 25 1 3 $$value{'type'} eq 'text' or $$value{'type'} eq 'expr'
727 0 0 135 not $next_el or $next_el and $$next_el{'level'} <= $$el{'level'}
1067 2 0 1 $self->_eq_mtime || $self->_eq_checksum