line |
true |
false |
branch |
46
|
2 |
94 |
if ($attr =~ /^_/) { } |
54
|
5 |
11 |
unless (exists $public{$k}) |
55
|
2 |
3 |
if (exists $private{$k}) { } |
67
|
2 |
3 |
if (@initparam) |
72
|
2 |
3 |
if (keys %ignored) |
83
|
2 |
3 |
if (defined $I->path) { } |
84
|
0 |
2 |
if (ref $I->path ne 'ARRAY') |
88
|
1 |
2 |
if (exists $ENV{'TEMPLATE_PATH'}) { } |
97
|
2 |
0 |
if (ref $I ne 'TX') |
99
|
0 |
2 |
if (exists $INC{$filename}) |
111
|
2 |
0 |
if (exists $INC{$filename}) |
123
|
5 |
0 |
unless (defined $I->binmode) |
127
|
3 |
2 |
unless defined $I->delimiters |
129
|
1 |
4 |
if (defined $I->delimiters and ref $I->delimiters ne 'ARRAY') |
131
|
1 |
0 |
unless @l == 2 |
132
|
1 |
0 |
if @l == 2 |
136
|
0 |
5 |
if (defined $I->cachesize and $I->cachesize > 0) |
137
|
0 |
0 |
if (eval {
do {
require Tie::Cache::LRU
}
}) { } |
144
|
3 |
2 |
unless (defined $I->evalcache) |
148
|
2 |
3 |
if ($I->evalcache) |
149
|
2 |
0 |
unless ref $I->evalcache eq 'HASH' |
150
|
0 |
2 |
if (defined $I->evalcachesize and $I->evalcachesize > 0) |
151
|
0 |
0 |
if (eval {
do {
require Tie::Cache::LRU
}
}) { } |
171
|
0 |
0 |
if (@_ > 2) { } |
|
0 |
0 |
elsif (@_ > 1 and ref $re eq 'Regexp') { } |
|
0 |
0 |
elsif (@_ > 1) { } |
173
|
0 |
0 |
unless ref $re eq 'Regexp' |
192
|
21 |
6 |
if (ref $filename) { } |
202
|
0 |
0 |
if ref $o{'error'} |
206
|
21 |
0 |
$I->delimiters ? : |
|
21 |
0 |
defined $I->evalcache ? : |
209
|
0 |
21 |
unless $t->compile |
212
|
0 |
6 |
if (exists $I->cache->{$filename} and $I->auto_reload_templates) |
216
|
0 |
0 |
if (-f ($path = $base) and -r _ or -f ($path = $base . '.tmpl') and -r _ or -f ($path = $base . '.html') and -r _) |
221
|
0 |
0 |
if ($$cachel[1] != $dev or $$cachel[2] != $ino or $$cachel[3] != $mtime) |
230
|
4 |
2 |
unless (exists $I->cache->{$filename}) |
236
|
0 |
6 |
if (defined $I->binmode) { } |
241
|
4 |
2 |
if (open $fh, $mode, $path = $base or open $fh, $mode, $path = $base . '.tmpl' or open $fh, $mode, $path = $base . '.html') |
251
|
0 |
4 |
if ref $o{'error'} |
255
|
4 |
0 |
$I->delimiters ? : |
|
2 |
2 |
defined $I->evalcache ? : |
258
|
0 |
4 |
unless $t->compile |
265
|
0 |
6 |
unless exists $I->cache->{$filename} |
269
|
22 |
5 |
if (defined $module and length $module) { } |
282
|
6 |
21 |
if (eval {
do {
$tmpl->isa('TX')
}
}) { } |
|
20 |
1 |
elsif ($tx) { } |
295
|
3 |
24 |
if (ref $tmpl) { } |
300
|
4 |
20 |
if (length $tmp_filename) { } |
309
|
15 |
12 |
if (ref $_[0] eq 'HASH') |
314
|
13 |
14 |
if exists $opts{'VMODE'} |
319
|
23 |
4 |
unless (%opts) |
320
|
20 |
3 |
if @{$I->Ostack;} |
323
|
3 |
24 |
unless (exists $opts{'OUTPUT'}) |
324
|
3 |
0 |
defined $I->output ? : |
|
0 |
3 |
@{$I->Ostack;} ? : |
329
|
7 |
20 |
unless (exists $opts{'PACKAGE'}) |
330
|
0 |
5 |
defined $I->package ? : |
|
2 |
5 |
@{$I->Ostack;} ? : |
340
|
27 |
0 |
unless (ref $opts{'OUTPUT'}) |
345
|
27 |
0 |
if ($I->export_include) |
347
|
3 |
24 |
unless (defined &{$opts{'PACKAGE'} . '::include';}) |
353
|
13 |
14 |
if ($keep_v) { } |
|
0 |
14 |
elsif ($add_v) { } |
354
|
13 |
0 |
@{$I->Vstack;} ? : |
364
|
4 |
1 |
if (not @{$I->Lstack;} and !$I->preserve_G || ref $I->G ne 'HASH') |
377
|
27 |
0 |
if ($want_stringoutput) { } |
|
0 |
0 |
elsif ($I->get_template($filename, $module)->fill_in(%opts)) { } |
390
|
4 |
23 |
if $@ |
392
|
18 |
2 |
if (@{$I->Fstack;} and not defined wantarray and length $rc) |