Branch Coverage

blib/lib/RapidApp/Template/Provider.pm
Criterion Covered Total %
branch 9 56 16.0


line true false branch
51 0 32 if $self->{'IGNORE_STORE_OWNERSHIP'}
53 0 2 $name =~ m[^/] ? :
176 0 0 $creatable ? :
181 0 0 $creatable ? :
209 0 2 unless defined $string
227 0 0 if $self->_store_owns_template($template)
233 0 0 unless -f $File
241 8 0 $self->get_template_path($template) ? :
0 8 $self->_store_owns_template($template) ? :
258 0 8 if ('File::Spec'->file_name_is_absolute($name)) { }
0 8 elsif ($name =~ /$Template::Provider::RELATIVE_PATH/o) { }
261 0 0 unless $self->{'ABSOLUTE'}
266 0 0 unless $self->{'RELATIVE'}
277 8 8 if $self->_template_modified($path)
292 0 0 unless defined $content
294 0 0 if $self->_store_owns_template($template)
298 0 0 if -f $File
301 0 0 unless (-d $Dir)
302 0 0 unless $Dir->mkpath
307 0 0 -f $File ? :
313 0 0 if $self->_store_owns_template($template)
316 0 0 unless -f $File
319 0 0 unless &RapidApp::Template::Provider::unlink($File)
321 0 0 -f $File ? :
332 0 0 unless ref $paths
341 0 0 if $child->is_dir
360 0 0 if $seen{$child->absolute->stringify}++
371 0 0 unless $self->Store->list_templates(@regexes)