Branch Coverage

blib/lib/Dancer/Template/TemplateSandbox.pm
Criterion Covered Total %
branch 10 30 33.3


line true false branch
18 1 1 unless 'Dancer::ModuleLoader'->load('Template::Sandbox')
28 0 1 if setting('views')
32 0 1 if ($_template_config{'cache'})
37 0 0 if $_template_config{'cache_dir'}
39 0 0 if $_template_config{'cache_type'}
42 0 0 if ($_template_config{'cache'} eq 'cache_factory') { }
0 0 elsif ($_template_config{'cache'} eq 'chi') { }
46 0 0 unless 'Dancer::ModuleLoader'->load('Cache::CacheFactory')
50 0 0 if ($cache_type eq 'file') { }
69 0 0 unless 'Dancer::ModuleLoader'->load('CHI')
72 0 0 if ($cache_type eq 'file') { }
101 1 1 unless ref $template or -f $template
107 1 1 if (ref $template) { }
114 0 1 if $_template_config{'template_root'}
119 2 0 $contentref ? :