Condition Coverage

blib/lib/Template/Parser/CET.pm
Criterion Covered Total %
condition 25 92 27.1


and 3 conditions

line !l l&&!r l&&r condition
101 0 0 19 UNIVERSAL::can($err, 'doc') and not $err->doc
177 4 0 0 ref $key and @$key == 2
4 0 0 ref $key and @$key == 2 and not ref $$key[0]
711 0 0 10 $sub_tree && $$sub_tree[0]
4 3 3 ref $$sub_tree[0] and $$sub_tree[0][0] eq 'BLOCK'
784 171 0 2 $$node[4] and $val == $$node[4]
788 0 2 0 $$sub_tree[0] and $$sub_tree[0][0] eq 'BLOCK'
863 0 0 0 defined $$node[3] && uc $$node[3] ne 'DEFAULT'
971 0 0 0 not $conf and defined $conf
985 0 0 0 $prop =~ /^\w+$/ and $meth = $obj->can($prop)
1010 0 0 0 not defined $$conf{'html'} and $ENV{'REQUEST_METHOD'}

or 2 conditions

line l !l condition
30 0 698 $$self{'FACTORY'} ||= 'Template::Directive'
43 0 0 $fclass->new('NAMESPACE', $$self{'NAMESPACE'}) || (return $class->error($fclass->error))
88 0 735 $$self{'DEBUG_DIRS'} || undef
384 2 1 $the_rest[1] || 0
390 1 2 $the_rest[1] || 0
664 0 0 $$self{'loop_type'} || ''
729 0 0 $$self{'loop_type'} || ''
737 0 0 $$node[4] || (return '')
756 0 0 $$node[4] || (return '')
967 0 0 $$info{'context'} || die('Missing context')

or 3 conditions

line l !l&&r !l&&!r condition
55 7 0 0 not $Template::Parser::CET::ORIG_CONFIG_CLASS or $Template::Parser::CET::ORIG_CONFIG_CLASS ne $Template::Config::PARSER
366 41 1 269 $op eq '~' or $op eq '_'
1 0 246 $op eq 'div' or $op eq 'DIV'
65 0 143 $op eq '//' or $op eq 'err'
426 0 0 19 ref $$ident[0] or not defined $$ident[0]
435 0 0 0 ref $$ident[$i] or not defined $$ident[$i]
665 0 0 0 $type eq 'WHILE' or $type eq 'FOREACH'
798 0 0 0 $1 eq '_' || $1 eq '~'
997 0 0 0 not $EntireStash or $$conf{'EntireStash'}
0 0 0 not $EntireStash or $$conf{'EntireStash'} or not defined $$conf{'EntireStash'}
1010 0 0 0 $$conf{'html'} or not defined $$conf{'html'} and $ENV{'REQUEST_METHOD'}
1018 0 0 0 $$conf{'header'} or not defined $$conf{'header'}
1020 0 0 0 $$conf{'header'} or not defined $$conf{'header'}