Branch Coverage

blib/lib/Module/CPANTS/Kwalitee/FindModules.pm
Criterion Covered Total %
branch 32 68 47.0


line true false branch
20 0 11 if ($me->d->{'meta_yml'} and $me->d->{'meta_yml'}{'provides'}) { }
23 0 0 unless ref $data eq ref {}
32 0 0 if ($file =~ /^lib\W/) { }
0 0 elsif (not $file =~ m[/]) { }
40 0 0 if (exists $me->d->{'files_hash'}{$file}) { }
51 10 9 unless $file =~ /\.pm$/
52 0 9 if $file =~ m[^x?t/]
53 0 9 if $file =~ m[^test/]
54 0 9 if $file =~ m[^(bin|scripts?|ex|eg|examples?|samples?|demos?)/\w]i
55 0 9 if $file =~ m[^inc/]
56 0 9 if $file =~ m[^(local|perl5|fatlib)/]
59 6 3 if ($file =~ m[^lib/(.*)\.pm$]) { }
74 0 3 unless open my $fh, '<', catfile($me->distdir, $file)
76 0 3 if $line =~ /^\s*#/
77 3 0 if ($line =~ /^\s*package\s*(.*?)\s*;/)
81 0 0 if $line =~ /^__(DATA|END)__/
83 0 0 unless $max_lines_to_look_at
86 0 3 unless ($module)
92 3 0 if ($module)
96 3 0 $in_basedir{$file} ? :
106 19 0 unless $file =~ m[^inc/(.+)\.pm]
112 9 2 if (exists $me->d->{'modules'})
115 0 11 if (exists $me->d->{'included_modules'})
137 2 9 unless $d->{'modules'}
138 2 9 unless @modules
141 6 3 unless @not_in_lib
144 3 0 if @in_basedir == 1
152 0 0 unless $d->{'modules'}
153 0 0 unless @modules
164 2 9 unless $d->{'modules'}
165 2 9 unless @modules
167 0 9 if (my(@not_exists) = grep({$_->{'not_exists'};} @modules))
175 0 0 unless $d->{'modules'}
176 0 0 unless @modules