Condition Coverage

blib/lib/Template/Alloy/TT.pm
Criterion Covered Total %
condition 87 121 71.9


and 3 conditions

line !l l&&!r l&&r condition
26 0 4313 0 $str_ref and defined $$str_ref
87 0 0 18 defined $$pointer[-1] and not ref $$pointer[-1]
108 18 59 12 not $not and $$self{'SHOW_UNDEFINED_INTERP'}
121 7678 87 137 $pre_chomp and $$pointer[-1]
7765 30 107 $pre_chomp and $$pointer[-1] and not ref $$pointer[-1]
145 1272 0 8480 $$str_ref =~ / \G \s* $QR_COMMENTS $Template::Alloy::Parse::QR_DIRECTIVE /cgox and $func = $$self{'ANYCASE'} ? uc $1 : $1
1272 8480 0 $$str_ref =~ / \G \s* $QR_COMMENTS $Template::Alloy::Parse::QR_DIRECTIVE /cgox and $func = $$self{'ANYCASE'} ? uc $1 : $1 and $$dirs{$func} || (pos $$str_ref -= length $1) && 0
157 3889 389 152 $$dirs{$func}[3] and $post_op
4269 6 3 $post_op and $$self{'SEMICOLONS'}
179 0 0 27 UNIVERSAL::can($err, 'node') and not $err->node
185 1876 152 1081 $$dirs{$func}[2] and not $post_op
206 0 395 38 defined $$parent_node[3] and @in_view
212 0 53 380 $$pointer[-1] and not $$pointer[-1][6]
258 5037 42 15 $post_op and $$self{'SEMICOLONS'}
266 0 0 0 UNIVERSAL::can($err, 'node') and not $err->node
344 0 0 1 $#ARGS == 0 && UNIVERSAL::isa($ARGS[0], 'HASH')
427 3 57 0 $type =~ / ^ \Q$_name\E \b /x and !defined($last_found) || length $last_found < length $_name
473 3727 0 0 exists $$self{'AUTO_RESET'} and not $$self{'AUTO_RESET'}
527 0 0 0 eval { do { require Encode } } and defined &Encode::encode
549 64 10 12 $$doc{'_tree'} && ref $$doc{'_tree'}[0] && $$doc{'_tree'}[0][0] eq 'META'

or 2 conditions

line l !l condition
16 8 0 $^V >= 5.009 || 0
30 106 4207 $$self{'TAG_STYLE'} || 'default'
225 0 216 $$node[4] ||= []
231 0 1081 $$node[4] ||= []
368 15 3712 $$self{'BLOCKS'} ||= {}
376 3725 2 $swap ||= {}
377 15 3712 $$self{'_vars'} ||= {}
378 42 3670 $$self{'STASH'} || $$self{'VARIABLES'} || $$self{'PRE_DEFINE'} || {}
379 15 3712 $$var1{'global'} ||= {}
420 45 156 $$self{'ERRORS'} || $$self{'ERROR'} || die($err)
548 129 0 $self->load_template($content) || {}

or 3 conditions

line l !l&&r !l&&!r condition
31 133 4180 0 $$self{'END_TAG'} || $$Template::Alloy::Parse::TAGS{$STYLE}[1]
32 133 4180 0 $$self{'START_TAG'} || $$Template::Alloy::Parse::TAGS{$STYLE}[0]
35 27 4286 0 $QR_COMMENTS || (local $Template::Alloy::Parse::QR_COMMENTS = "(?sm: \\s*+ \\# .*? (?: \$ | (?=$$self{'_end_tag'}) ) )*+ \\s*+")
85 12 6 89 $$self{'_no_interp'} or $n % 2
137 0 0 21 $post_chomp ||= $$self{'POST_CHOMP'}
145 4430 0 4050 $$dirs{$func} || (pos $$str_ref -= length $1) && 0
185 1072 219 3109 $func eq 'END' or $$dirs{$func}[4]
242 0 0 66 $1 || $$self{'POST_CHOMP'}
272 9 6 6 @$var < 3 or $$var[-3] ne '|'
288 454 208 7068 $1 || $$self{'POST_CHOMP'}
426 0 45 15 !defined($name) || lc $name eq 'default'
427 45 5 7 !defined($last_found) || length $last_found < length $_name
485 3560 1 1 $out ||= $$self{'OUTPUT'}