Branch Coverage

blib/lib/Module/Starter/Smart.pm
Criterion Covered Total %
branch 41 58 70.6


line true false branch
109 0 3 ref $class ? :
125 2 1 unless -e $self->{'basedir'} and not $self->{'force'}
143 4 0 if (@dirparts)
145 2 2 unless (-d $dir)
157 1 3 if (-e $module_file) { }
160 0 3 unless open my $fh, '>', $module_file
176 1 17 @_ == 2 ? :
182 7 11 unless (-d $tdir)
190 5 13 if (-e $fname) { }
193 0 13 unless open my $fh, '>', $fname
213 1 1 if (-e $fname) { }
216 0 1 unless open my $fh, '>', $fname
236 0 1 if (-e $fname) { }
239 0 1 unless open my $fh, '>', $fname
253 1 2 if (-e $fname) { }
256 0 2 unless open my $fh, '>', $fname
271 1 2 if (-e $fname) { }
274 0 2 unless open my $fh, '>', $fname
286 0 3 unless $basedir
288 2 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 3 unless $basedir
314 0 3 unless $tdir and -d $tdir
321 0 3 unless opendir my $dh, $dir
322 12 6 if not /^\.{1,2}/