| line |
true |
false |
branch |
|
20
|
0 |
11 |
if (defined $string and defined $file) |
|
23
|
0 |
3 |
unless (defined $string or defined $file) |
|
27
|
11 |
0 |
defined $args{'escape'} ? : |
|
28
|
0 |
11 |
if ($escape ne "html" and $escape ne "raw") |
|
32
|
3 |
8 |
if (defined $file) |
|
40
|
2 |
9 |
exists $args{'includes'} ? : |
|
53
|
0 |
11 |
unless defined $data |
|
78
|
12 |
15 |
if (length $text) |
|
86
|
0 |
27 |
unless ($template =~ /\G(.*?)\}\}/cgs) |
|
95
|
5 |
22 |
if ($trimmed =~ /^#(.*)\z/s) { } |
|
|
5 |
17 |
elsif ($trimmed =~ m[^/(.*)\z]s) { } |
|
|
17 |
0 |
elsif (length $trimmed) { } |
|
117
|
0 |
5 |
unless (defined $current and defined $current->{'expr'}) |
|
120
|
2 |
3 |
if (length $inner) |
|
122
|
0 |
2 |
if ($current->{'expr'} ne $parsed->{'expr'}) |
|
128
|
6 |
11 |
if ($trimmed =~ /^>(.*)\z/s) { } |
|
129
|
1 |
5 |
unless $includes |
|
135
|
0 |
5 |
unless length $include_path |
|
144
|
1 |
4 |
if ($seen_files->{$key}) |
|
176
|
4 |
7 |
if (length $tail) |
|
183
|
0 |
11 |
if (@stack > 1) |
|
195
|
0 |
7 |
unless open my $fh, "<:encoding(UTF-8)", $file |
|
211
|
0 |
5 |
if ("File::Spec"->file_name_is_absolute($include_path)) |
|
215
|
0 |
5 |
unless defined $current_file |
|
227
|
12 |
0 |
defined $abs ? : |
|
236
|
2 |
16 |
if (defined $split) |
|
238
|
2 |
0 |
if ($rhs eq "html" or $rhs eq "raw") |
|
246
|
0 |
18 |
unless length $expr |
|
260
|
0 |
194 |
if ($quote) |
|
261
|
0 |
0 |
if ($ch eq "\\") |
|
265
|
0 |
0 |
if ($ch eq $quote) |
|
271
|
0 |
194 |
if ($ch eq "\"" or $ch eq "'") |
|
276
|
192 |
2 |
unless $ch eq ":" |
|
277
|
0 |
2 |
unless substr($text, $i, 2) eq "::" |
|
300
|
20 |
20 |
if ($node->{'type'} eq "text") |
|
305
|
14 |
6 |
if ($node->{'type'} eq "expr") |
|
310
|
0 |
14 |
unless defined $sv |
|
316
|
2 |
12 |
defined $node->{'escape'} ? : |
|
321
|
6 |
0 |
if ($node->{'type'} eq "block") |
|
324
|
1 |
7 |
unless _truthy($val) |
|
325
|
6 |
1 |
defined $val->id ? : |
|
341
|
0 |
8 |
unless $node |
|
347
|
0 |
14 |
unless defined $value |
|
349
|
12 |
2 |
if ($mode eq "raw") |
|
353
|
2 |
0 |
if ($mode eq "html") |