Branch Coverage

blib/lib/Module/New/Command/Basic.pm
Criterion Covered Total %
branch 25 52 48.0


line true false branch
13 0 6 unless $name
26 0 4 unless $name
31 4 0 unless ($type)
32 2 2 if ($name =~ /::/ or $name =~ /\.pm$/ or $name =~ m[^lib/]) { }
1 1 elsif ($name =~ /\.t$/ or $name =~ m[^t/]) { }
1 0 elsif ($name =~ /\.pl/ or $name =~ m[^(?:bin|scripts?)/]) { }
0 0 elsif ($name = /\./) { }
48 2 2 if ($type =~ /Module$/) { }
62 5 1 if (not $context->config('no_dirs')) { }
65 0 5 if ($distdir->exists)
66 0 0 if ($context->config('force')) { }
0 0 elsif ($context->config('grace')) { }
92 0 6 if $type eq 'MB'
93 0 6 if $type eq 'EUMM'
111 0 6 if (ref $context->config('test') eq 'ARRAY') { }
0 6 elsif (@files) { }
130 1 9 if ($context->config('xs'))
137 0 1 if $@
140 4 55 if ($name eq '{ANY_TYPE}')
153 0 10 if $context->config('force')
155 10 0 if $context->config('silent')
165 10 0 if $ENV{'HARNESS_ACTIVE'} or $INC{'Test/Classy.pm'}
170 0 0 if $options{'optional'}
173 0 0 unless ($editor)
182 0 0 unless $str =~ /\s/
183 0 0 $^O eq 'MSWin32' ? :