Branch Coverage

lib/Module/Provision/TraitFor/Rendering.pm
Criterion Covered Total %
branch 3 24 12.5


line true false branch
64 1 0 $self->templates ? :
68 0 1 if $tgt->exists
84 0 1 if $index->exists and $data = $self->file->data_load('paths', [$index], 'storage_class', 'Any')
124 0 0 if (&is_arrayref($tuple->[$i])) { }
143 0 0 unless $template
144 0 0 unless $target
146 0 0 if $target->exists and $target->is_dir
150 0 0 unless $template->exists
155 0 0 if $target->exists and not $self->force and $prompt = $self->loc('File [_1] exists, overwrite?', $file) and not $self->yorn($self->add_leader($prompt), 0, 1)
160 0 0 unless my $tmplt = 'Template'->new($self->$_template_args)
164 0 0 unless $tmplt->process($template->pathname, $self->stash, \$text)
171 0 0 unless $self->quiet