blib/lib/DTL/Fast.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 26 | 64 | 40.6 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
111 | 0 | 68 | 0 | defined $kwargs{'dirs'} and ref $kwargs{'dirs'} |
0 | 68 | 0 | defined $kwargs{'dirs'} and ref $kwargs{'dirs'} and scalar @{$kwargs{'dirs'};} | |
136 | 0 | 53 | 0 | defined $template and exists $kwargs{'cache'} |
53 | 0 | 0 | defined $template and exists $kwargs{'cache'} and $kwargs{'cache'} | |
0 | 0 | 0 | defined $template and exists $kwargs{'cache'} and $kwargs{'cache'} and $kwargs{'cache'}->isa('DTL::Fast::Cache') | |
161 | 7 | 0 | 66 | -e $template_path and -f $template_path |
7 | 0 | 66 | -e $template_path and -f $template_path and -r $template_path | |
246 | 0 | 30 | 0 | exists $TAG_HANDLERS{$keyword} and $TAG_HANDLERS{$keyword} ne $module |
261 | 5880 | 0 | 0 | exists $FILTER_HANDLERS{$slug} and $FILTER_HANDLERS{$slug} ne $module |
300 | 2058 | 0 | 0 | exists $OPS_HANDLERS{$operator} and $OPS_HANDLERS{$operator} ne $module |
line | l | !l | condition |
---|---|---|---|
94 | 4 | 156 | $kwargs{'ssi_dirs'} // [] |
296 | 1176 | 882 | $KNOWN_OPS{$priority} //= {} |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
53 | 0 | 0 | 92 | not defined $kwargs{'dirs'} or ref $kwargs{'dirs'} ne 'ARRAY' |
0 | 0 | 92 | not defined $kwargs{'dirs'} or ref $kwargs{'dirs'} ne 'ARRAY' or not scalar @{$kwargs{'dirs'};} | |
60 | 85 | 7 | 0 | $RUNTIME_CACHE //= 'DTL::Fast::Cache::Runtime'->new |
62 | 0 | 68 | 24 | $kwargs{'no_cache'} or not defined($template = $RUNTIME_CACHE->get($cache_key)) |
116 | 0 | 68 | 0 | $kwargs{'no_cache'} or not exists $kwargs{'cache'} |
68 | 0 | 0 | $kwargs{'no_cache'} or not exists $kwargs{'cache'} or not $kwargs{'cache'} | |
68 | 0 | 0 | $kwargs{'no_cache'} or not exists $kwargs{'cache'} or not $kwargs{'cache'} or not $kwargs{'cache'}->isa('DTL::Fast::Cache') | |
0 | 0 | 0 | $kwargs{'no_cache'} or not exists $kwargs{'cache'} or not $kwargs{'cache'} or not $kwargs{'cache'}->isa('DTL::Fast::Cache') or not defined($template = $kwargs{'cache'}->get($cache_key)) | |
203 | 0 | 0 | 2 | not ref $template_names or ref $template_names ne 'ARRAY' |
0 | 0 | 2 | not ref $template_names or ref $template_names ne 'ARRAY' or not scalar @$template_names |