Branch Coverage

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


line true false branch
107 0 2 ref $class ? :
123 1 1 unless -e $self->{'basedir'} and not $self->{'force'}
141 3 0 if (@dirparts)
143 1 2 unless (-d $dir)
155 1 2 if (-e $module_file) { }
158 0 2 unless open my $fh, '>', $module_file
174 1 12 @_ == 2 ? :
180 5 8 unless (-d $tdir)
188 5 8 if (-e $fname) { }
191 0 8 unless open my $fh, '>', $fname
211 1 1 if (-e $fname) { }
214 0 1 unless open my $fh, '>', $fname
234 0 0 if (-e $fname) { }
237 0 0 unless open my $fh, '>', $fname
251 1 1 if (-e $fname) { }
254 0 1 unless open my $fh, '>', $fname
269 1 1 if (-e $fname) { }
272 0 1 unless open my $fh, '>', $fname
284 0 2 unless $basedir
286 1 1 unless $libdir and -d $libdir
294 0 2 unless opendir my $dh, $dir
301 0 1 $prefix ? :
1 1 if -d $name
302 1 0 $prefix ? :
1 0 if $name =~ /\.pm$/
310 0 2 unless $basedir
312 0 2 unless $tdir and -d $tdir
319 0 2 unless opendir my $dh, $dir
320 8 4 if not /^\.{1,2}/