Branch Coverage

blib/lib/Module/Starter/PBP.pm
Criterion Covered Total %
branch 1 44 2.2


line true false branch
107 0 0 unless defined $$self{'template_dir'}
111 0 0 unless -d $$self{'template_dir'}
117 0 0 unless -e $abs_file_path
121 0 0 unless -r $abs_file_path
125 0 0 unless open my $fh, '<', $abs_file_path
130 0 0 unless $$context_ref{$1}
143 1 0 if (@other_args or not $setup or $setup ne 'setup')
153 0 0 unless (defined $ENV{'HOME'})
157 0 0 unless -d $ENV{'HOME'}
164 0 0 unless (-d $template_dir)
173 0 0 unless (-d $template_test_dir)
186 0 0 if (-e $config_file) { }
194 0 0 unless open my $fh, '<', $backup
197 0 0 unless close $fh
219 0 0 unless open my $fh, '>', $config_file
220 0 0 unless print {$fh;} @config_info
221 0 0 unless close $fh
246 0 0 unless open my $fh, '>', $abs_path
247 0 0 unless print {$fh;} $contents_of{$$ref_path[-1]}
248 0 0 unless close $fh
262 0 0 unless (defined $response)
267 0 0 if $response =~ /\S/