line |
true |
false |
branch |
81
|
1 |
0 |
ref $_[0] ? : |
111
|
0 |
2 |
if (ref $_[0] eq 'ARRAY') |
119
|
1 |
11 |
unless (ref $x) |
126
|
0 |
11 |
unless (exists $$x{'KEY'}) |
132
|
1 |
10 |
unless ($class->new(%parms)) |
139
|
1 |
1 |
$failures ? : |
155
|
2 |
26 |
defined $a{'RELOAD'} ? : |
156
|
0 |
28 |
defined $a{'DEBUG'} ? : |
159
|
14 |
14 |
if ($a{'KEY'} and $Text::FastTemplate::OBJECT_CACHE{$a{'GROUP'}}{$a{'KEY'}}) { } |
|
0 |
14 |
elsif (not $a{'FILE'}) { } |
163
|
12 |
2 |
if (not $reload) { } |
165
|
0 |
12 |
if $debug |
170
|
0 |
2 |
if $debug |
184
|
0 |
14 |
if $debug |
185
|
0 |
14 |
unless ($a{'FILE'}) |
191
|
0 |
14 |
if ($a{'PATH'} and not ref $a{'PATH'}) |
209
|
2 |
14 |
unless $class->_new($self) |
212
|
12 |
2 |
if defined $$self[4] |
224
|
11 |
2 |
ref $_[0] ? : |
276
|
0 |
0 |
if (ref $a) { } |
283
|
0 |
0 |
$b ? : |
337
|
15 |
2 |
unless ($$self[0][6]) |
339
|
2 |
13 |
unless $self->_find_file |
344
|
3 |
12 |
if (exists $Text::FastTemplate::FILE_CACHE{$$self[0][6]}) { } |
346
|
0 |
3 |
if $$self[8] |
348
|
2 |
1 |
if ($$self[7]) { } |
350
|
0 |
2 |
if $$self[8] |
351
|
1 |
1 |
if (stat $$self[0][6])[9] > $$self[0][0] |
358
|
0 |
1 |
if $$self[8] |
368
|
13 |
2 |
if ($mark) |
371
|
0 |
13 |
unless $self->_read_template |
372
|
0 |
13 |
unless $self->_scrub_template |
373
|
0 |
13 |
unless $self->_parse |
374
|
0 |
13 |
unless $self->_load_includes |
375
|
0 |
13 |
unless $self->_compile |
392
|
0 |
13 |
unless open FH, "< $$self[0][6]" |
396
|
13 |
0 |
if (@file_contents) |
402
|
13 |
0 |
@file_contents ? : |
423
|
16 |
12 |
unless $x =~ /^\s*#\s*(?:include|for|endfor|if|elsif|else|endif)(?:\s+.*|\s*\\\s*)?$/i |
450
|
28 |
0 |
if defined $x |
520
|
12 |
16 |
if ($y) { } |
522
|
1 |
11 |
if (lc $cmd eq 'include') { } |
|
1 |
10 |
elsif (lc $cmd eq 'for') { } |
|
1 |
9 |
elsif (lc $cmd eq 'endfor') { } |
|
3 |
6 |
elsif (lc $cmd eq 'if') { } |
|
2 |
4 |
elsif (lc $cmd eq 'elsif') { } |
|
1 |
3 |
elsif (lc $cmd eq 'else') { } |
|
3 |
0 |
elsif (lc $cmd eq 'endif') { } |
532
|
1 |
0 |
unless grep {$_ eq $macro;} @$macroes |
550
|
3 |
0 |
unless grep {$_ eq $macro;} @$macroes or $macro =~ /^\w+_LOOP_ID$/ |
570
|
1 |
0 |
unless grep {$_ eq $macro;} @$macroes or $macro =~ /^\w+_LOOP_ID$/ |
586
|
0 |
1 |
$macro ? : |
587
|
0 |
1 |
if $macro and not grep({$_ eq $macro;} @$macroes) |
609
|
6 |
0 |
unless grep {$_ eq $macro;} @$macroes or $macro =~ /^\w+_LOOP_ID$/ |
649
|
0 |
13 |
if ($@) |
698
|
4 |
20 |
$i ? : |
701
|
16 |
0 |
if not ref $a and !$i || ref $y |
703
|
8 |
16 |
if (ref $a) { } |
708
|
1 |
7 |
if ($$blocks[$block_index][0] == 1) |
710
|
0 |
1 |
unless my $name = $self->_find_file($macro) |
715
|
1 |
7 |
if ($$blocks[$block_index][0] == 2) { } |
|
3 |
4 |
elsif ($$blocks[$block_index][0] == 4) { } |
|
2 |
2 |
elsif ($$blocks[$block_index][0] == 5) { } |
|
1 |
1 |
elsif ($$blocks[$block_index][0] == 6) { } |
755
|
16 |
0 |
ref $z || $i == $#$code ? : |
771
|
15 |
1 |
unless ($file) |
782
|
0 |
16 |
if ($file =~ m[^/]) { } |
791
|
14 |
2 |
if ($Text::FastTemplate::FILE_CACHE{$F} or -e $F and -r $F) |
799
|
13 |
3 |
if $x and $filename |
801
|
13 |
1 |
$x ? : |
|
14 |
2 |
$filename ? : |
811
|
1 |
12 |
if ($$self[0][1]) |
821
|
0 |
1 |
unless $$parms[6] = $$self[6], $$parms[7] = $$self[7], $$parms[8] = $$self[8], $x = $class->_new($parms) |