Condition Coverage

blib/lib/HTML/Template/Compiled/Compiler.pm
Criterion Covered Total %
condition 81 93 87.1


and 3 conditions

line !l l&&!r l&&r condition
195 341 0 27 not defined $args{'var'} and defined $args{'expr'}
236 181 101 54 $t->get_loop_context and $args{'var'} =~ /^__(\w+)__$/
243 5 268 9 not $DISABLE_NEW_ALIAS and $args{'var'} =~ s/^\$(\w+)//
264 7 2 $lexi and $args{'var'} =~ s/^($lexi)($re)/$2/
250 5 16 $args{'var'} =~ /^_/ and not $args{'var'} =~ /^__(\w+)__$/
311 57 264 1 $i == $#split and defined $args{'method_args'}
315 57 263 2 $i == $#split and $ccontext eq 'list'
333 0 267 35 $use_objects and $p =~ s/^\Q$args{'method_call'}\E//
364 38 238 23 $count == 0 and $t->get_global_vars & 1
396 236 0 0 $OPT_IS_OBJECT and $is_object_var
401 28 236 0 $i == 0 and $root_hash
421 22 46 31 $used_initial_var and $i == 0
594 235 0 0 exists $tags->{$tname} and exists $tags->{$tname}{'open'}
1130 252 3 0 $subs and $subs->{'open'}
1144 30 3 5 $self->get_global_vars and $tname eq 'WITH'
1186 0 0 0 $subs and $subs->{'close'}

or 2 conditions

line l !l condition
192 4 364 $args{'ccontext'} || ''
721 2 50 $attr->{'CONTEXT'} || ''
733 6 7 $info_stack->[-1]{lc $var}{'children'} ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
356 35 254 33 $method_call or $guess
363 35 252 35 $method_call or $guess
287 12 23 $method_call or $guess or $deref
372 35 229 15 $method_call or $guess
655 44 2 333 $tname eq 'LOOP' or $tname eq 'WHILE'
46 6 327 $tname eq 'LOOP' or $tname eq 'WHILE' or $tname eq 'EACH'
1 19 261 $tname eq 'INCLUDE_VAR' or $tname eq 'INCLUDE'
20 6 255 $tname eq 'INCLUDE_VAR' or $tname eq 'INCLUDE' or $tname eq 'WRAPPER'
768 48 2 2 not defined $attr->{'SORT'} or uc $attr->{'SORT'} eq 'ALPHA'
925 1 0 4 not length $val or uc $val eq 'DEFAULT'
941 1 1 2 $is_default or @splitted > 1
1139 44 2 12 $tname eq 'LOOP' or $tname eq 'WHILE'
46 6 6 $tname eq 'LOOP' or $tname eq 'WHILE' or $tname eq 'EACH'