Branch Coverage

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


line true false branch
46 0 92 unless $template_name
53 0 92 if not defined $kwargs{'dirs'} or ref $kwargs{'dirs'} ne 'ARRAY' or not scalar @{$kwargs{'dirs'};}
62 68 24 if ($kwargs{'no_cache'} or not defined($template = $RUNTIME_CACHE->get($cache_key)))
69 53 2 if (defined $template) { }
111 0 68 unless defined $kwargs{'dirs'} and ref $kwargs{'dirs'} and scalar @{$kwargs{'dirs'};}
116 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)))
126 66 2 if (defined $template)
136 0 0 if defined $template and exists $kwargs{'cache'} and $kwargs{'cache'} and $kwargs{'cache'}->isa('DTL::Fast::Cache')
141 53 2 if (defined $template)
143 0 53 if $kwargs{'cache'}
144 0 53 if $kwargs{'url_source'}
161 66 0 if (-e $template_path and -f $template_path and -r $template_path)
181 68 0 if (open my $IF, '<', $file_name) { }
203 0 2 if not ref $template_names or ref $template_names ne 'ARRAY' or not scalar @$template_names
214 2 0 if (ref($result = get_template($template_name, %kwargs)) eq 'DTL::Fast::Template')
246 0 30 if exists $TAG_HANDLERS{$keyword} and $TAG_HANDLERS{$keyword} ne $module
261 0 5880 if exists $FILTER_HANDLERS{$slug} and $FILTER_HANDLERS{$slug} ne $module
293 0 2058 unless $priority =~ /^[012345678]$/
300 0 2058 if exists $OPS_HANDLERS{$operator} and $OPS_HANDLERS{$operator} ne $module