Condition Coverage

blib/lib/Text/Template/Compact.pm
Criterion Covered Total %
condition 106 151 70.2


and 3 conditions

line !l l&&!r l&&r condition
20 0 0 685 @_ and defined $_[0]
398 0 0 25 defined $a and $a eq $target->{'op'}{'key2'}
0 0 25 defined $a and $a eq $target->{'op'}{'key2'} and @{$target->{'args'};} == $target->{'op'}{'count'}
416 0 0 4 $target->{'op'}{'assoc'} =~ /t/ and $a
0 0 4 $target->{'op'}{'assoc'} =~ /t/ and $a and $a eq $target->{'op'}{'key2'}
444 366 603 182 defined $token and findOp($token, qr/[armtk]/)
456 0 24 38 @{$self->{'token'};} >= 2 and $op->{'key1'} =~ /^\w/
24 33 5 @{$self->{'token'};} >= 2 and $op->{'key1'} =~ /^\w/ and $self->{'token'}[1] eq '('
490 204 194 46 defined $token and $token =~ /^["\w\d_]/
398 33 13 defined $token and $token =~ /^["\w\d_]/ and $old_arg =~ /^\$/
510 171 0 21 $left_assoc =~ /[ba]/ and not $target->{'closed'}
692 987 38 0 @path and not ref $param
694 40 143 804 defined $param and not ref $param
183 103 701 defined $param and not ref $param and not utf8::is_utf8($param)
246 0 701 defined $param and not ref $param and not utf8::is_utf8($param) and defined $self->{'enc'}
753 0 0 0 @path and not ref $param
834 0 0 20 @$list and ref $list->[0]
0 0 20 @$list and ref $list->[0] and $list->[0]{$type}
905 19 10 1 $tag->{'ex_precheck'} and not $tmpl->evalExpr($tag, $tag->{'ex_precheck'})
916 10 17 1 $tag->{'ex_postcheck'} and not $tmpl->evalExpr($tag, $tag->{'ex_postcheck'})
963 168 6 1 $exit_tag and defined $exit_tag->{'label'}
174 1 0 $exit_tag and defined $exit_tag->{'label'} and defined $tag->{'label'}
7 0 0 $exit_tag and defined $exit_tag->{'label'} and defined $tag->{'label'} and $exit_tag->{'label'} eq $tag->{'label'}
1013 34 258 8 @list >= 2 and $filter_map{$list[-1]}
292 0 8 @list >= 2 and $filter_map{$list[-1]} and $list[-2] eq '#'
1030 42 280 1 @list >= 2 and $list[1] eq ':'
322 0 1 @list >= 2 and $list[1] eq ':' and $list[0] =~ /^\w/
1074 14 0 15 @list and $list[0] ne ';'
1088 0 2 1 @list and $list[0] ne ';'
1100 0 0 15 @list and $list[0] eq 'in'
1105 11 2 2 @list and $list[0] ne ';'
1106 11 2 2 @list and $list[0] ne ';'
1111 0 3 10 @list and $list[0] ne ';'
1140 44 0 4 @list and $list[0] ne ';'
1147 294 29 0 @list and $list[0] ne ';'
1194 12 0 0 $item->{'label'} and not defined $item->{'next'}{'label'}
1212 243 6 626 not ref $_ and @$rAll
249 240 386 not ref $_ and @$rAll and not ref $rAll->[-1]
1353 0 0 2 $filtername and $filter_map{$filtername}

or 2 conditions

line l !l condition
440 0 0 $token || ''
1237 0 62 $_[2] || ''

or 3 conditions

line l !l&&r !l&&!r condition
365 5 2030 0 $self->{'realop'} || $self->{'op'}
581 0 10 0 $self->{'tag'}{'filter'} || $self->{'tmpl'}{'filter_default'}
588 167 272 1331 $token =~ /^"/ or $token =~ /^\d/
1052 21 4 142 $type eq 'if' or $type eq 'elsif'
10 4 128 $type eq 'ifc' or $type eq 'elsifc'
3 0 70 $type eq 'break' or $type eq 'continue'
2 6 44 $type eq 'blockdefine' or $type eq 'blockpaste'
1179 15 3 240 $item->{'for'} or $item->{'while'}
1187 21 10 209 $item->{'if'} or $item->{'ifc'}
1365 7 0 863 $item->{'break'} or $item->{'continue'}