Branch Coverage

blib/lib/Module/Starter/Smart.pm
Criterion Covered Total %
branch 39 58 67.2


line true false branch
109 0 2 ref $class ? :
125 1 1 unless -e $self->{'basedir'} and not $self->{'force'}
143 3 0 if (@dirparts)
145 1 2 unless (-d $dir)
157 1 2 if (-e $module_file) { }
160 0 2 unless open my $fh, '>', $module_file
176 1 12 @_ == 2 ? :
182 5 8 unless (-d $tdir)
190 5 8 if (-e $fname) { }
193 0 8 unless open my $fh, '>', $fname
213 1 1 if (-e $fname) { }
216 0 1 unless open my $fh, '>', $fname
236 0 0 if (-e $fname) { }
239 0 0 unless open my $fh, '>', $fname
253 1 1 if (-e $fname) { }
256 0 1 unless open my $fh, '>', $fname
271 1 1 if (-e $fname) { }
274 0 1 unless open my $fh, '>', $fname
286 0 2 unless $basedir
288 1 1 unless $libdir and -d $libdir
296 0 2 unless opendir my $dh, $dir
303 0 1 $prefix ? :
1 1 if -d $name
304 1 0 $prefix ? :
1 0 if $name =~ /\.pm$/
312 0 2 unless $basedir
314 0 2 unless $tdir and -d $tdir
321 0 2 unless opendir my $dh, $dir
322 8 4 if not /^\.{1,2}/