Branch Coverage

blib/lib/DTL/Fast.pm
Criterion Covered Total %
branch 21 38 55.2


line true false branch
47 0 92 unless $template_name
54 0 92 if not defined $kwargs{'dirs'} or ref $kwargs{'dirs'} ne 'ARRAY' or not scalar @{$kwargs{'dirs'};}
63 68 24 if ($kwargs{'no_cache'} or not defined($template = $RUNTIME_CACHE->get($cache_key)))
70 53 2 if (defined $template) { }
112 0 68 unless defined $kwargs{'dirs'} and ref $kwargs{'dirs'} and scalar @{$kwargs{'dirs'};}
117 0 0 if ($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)))
127 66 2 if (defined $template)
137 0 0 if defined $template and exists $kwargs{'cache'} and $kwargs{'cache'} and $kwargs{'cache'}->isa('DTL::Fast::Cache')
142 53 2 if (defined $template)
144 0 53 if $kwargs{'cache'}
145 0 53 if $kwargs{'url_source'}
162 66 0 if (-e $template_path and -f $template_path and -r $template_path)
182 68 0 if (open my $IF, '<', $file_name) { }
204 0 2 if not ref $template_names or ref $template_names ne 'ARRAY' or not scalar @$template_names
215 2 0 if (ref($result = get_template($template_name, %kwargs)) eq 'DTL::Fast::Template')
247 0 30 if exists $TAG_HANDLERS{$keyword} and $TAG_HANDLERS{$keyword} ne $module
262 0 5880 if exists $FILTER_HANDLERS{$slug} and $FILTER_HANDLERS{$slug} ne $module
294 0 2058 unless $priority =~ /^[012345678]$/
301 0 2058 if exists $OPS_HANDLERS{$operator} and $OPS_HANDLERS{$operator} ne $module