| line |
true |
false |
branch |
|
74
|
0 |
5 |
if scalar @_ == 0
|
|
93
|
0 |
0 |
unless $self->{'watch'}
|
|
97
|
0 |
0 |
if (not defined $mtime && defined $new_mtime or $new_mtime != $mtime)
|
|
102
|
0 |
0 |
if $ok
|
|
110
|
0 |
48 |
unless $dictname_key
|
|
112
|
0 |
48 |
if $dictname_key =~ /\P{ASCII}/
|
|
114
|
0 |
48 |
$custom_locale ? :
|
|
117
|
45 |
3 |
if (defined $r) { }
|
|
118
|
11 |
34 |
if (ref $r eq 'SCALAR') { }
|
|
|
25 |
9 |
elsif (ref $r eq 'ARRAY') { }
|
|
131
|
0 |
3 |
if (exists $self->{'fallback_cache'}{$locale}{$dictname_key}) { }
|
|
138
|
1 |
1 |
if (defined $r)
|
|
139
|
1 |
0 |
if (ref $r eq 'SCALAR') { }
|
|
|
0 |
0 |
elsif (ref $r eq 'ARRAY') { }
|
|
155
|
43 |
5 |
if (ref $r eq "CODE")
|
|
158
|
36 |
7 |
if (defined $params)
|
|
160
|
3 |
33 |
if (ref $params eq '') { }
|
|
189
|
0 |
1 |
if $dictname_key =~ /\P{ASCII}/
|
|
191
|
0 |
1 |
$custom_locale ? :
|
|
193
|
1 |
0 |
if $self->{'dictionaries'}{$locale}{$dictname_key}
|
|
197
|
0 |
0 |
defined $self->{'fallback_cache'}{$locale}{$dictname_key} ? :
|
|
|
0 |
0 |
if exists $self->{'fallback_cache'}{$locale}{$dictname_key}
|
|
201
|
0 |
0 |
if defined $self->{'dictionaries'}{$_}{$dictname_key}
|
|
217
|
12 |
16 |
unless -f $file
|
|
223
|
0 |
16 |
unless $cur_suffix eq $self->suffix
|
|
226
|
0 |
16 |
if $tmp[-1] eq "tt"
|
|
227
|
0 |
16 |
if ($tmp[-1] eq "js")
|
|
232
|
0 |
0 |
if -f "File::Spec"->catpath($volume, $directories, join(".", @tmp) . ".tt.$lang.$cur_suffix")
|
|
236
|
12 |
4 |
if ($subdir =~ m[\A\Q$fdir\E[\\/](.+)\z])
|
|
257
|
16 |
0 |
unless $self->watch
|
|
265
|
0 |
90 |
unless defined $phrase
|
|
278
|
30 |
60 |
if ($self->phrase_need_compilation($value, $key))
|
|
291
|
5 |
2 |
if $self->dictionaries->{$locale}
|
|
293
|
0 |
2 |
if @alt_locales > 1
|
|
297
|
2 |
0 |
if ($alt_locale and $self->dictionaries->{$alt_locale})
|
|
303
|
0 |
2 |
if exists $self->fallback_cache->{$alt_locale}
|
|
306
|
2 |
0 |
if exists $self->fallbacks->{$alt_locale}
|
|
310
|
0 |
0 |
if $self->dictionaries->{$self->{'default_locale'}}
|
|
317
|
0 |
2 |
unless scalar @fallback_locales
|
|
321
|
0 |
2 |
if scalar @fallback_locales == 1 and ref $fallback_locales[0] eq "ARRAY"
|
|
336
|
30 |
143 |
if (ref $value eq 'HASH') { }
|
|
351
|
36 |
6 |
if (ref $item eq 'HASH') { }
|
|
|
4 |
2 |
elsif (ref $item ne 'HASH' and defined $item) { }
|
|
375
|
16 |
104 |
if (ref $item eq 'CODE') { }
|
|
|
66 |
38 |
elsif (ref $item eq 'HASH') { }
|
|
382
|
36 |
124 |
if (ref $value eq 'CODE') { }
|
|
|
16 |
108 |
elsif (ref $value eq 'HASH') { }
|
|
|
16 |
92 |
elsif (ref $value eq 'ARRAY') { }
|
|
443
|
16 |
174 |
ref $item_value eq 'ARRAY' ? :
|
|
|
44 |
190 |
ref $item_value eq 'HASH' ? :
|