Branch Coverage

blib/lib/Module/CPANTS/Kwalitee/Prereq.pm
Criterion Covered Total %
branch 10 88 11.3


line true false branch
20 0 11 unless $class->_from_meta($me) or $class->_from_cpanfile($me) or $class->_from_build_pl($me) or $class->_from_makefile_pl($me)
30 8 3 unless $meta and ref $meta eq ref {}
34 0 3 if ($spec and ref $spec eq ref {} and ($spec->{'version'} || 0) =~ /^(\d+)/ and $1 >= 2) { }
47 0 15 if ($meta->{$rel} and ref $meta->{$rel} eq ref {})
49 0 0 unless $prereqs_r and ref $prereqs_r eq ref {}
51 0 0 $rel =~ /_/ ? :
56 0 0 $map{$rel} ? :
65 3 0 unless %res
74 11 0 unless -f $cpanfile
76 0 0 if $@
79 0 0 unless %res
89 11 0 unless -f $build_pl_file
92 0 0 unless $build_pl
105 0 0 unless $block
108 0 0 if ($hashref and ref $hashref eq ref {})
110 0 0 $rel =~ /_/ ? :
116 0 0 $map{$rel} ? :
139 0 11 unless $me->d->{'files_array'}
140 19 0 unless $file =~ /Makefile\.PL$/
142 0 0 unless -f $makefile_pl_file
145 0 0 unless $makefile_pl
147 0 0 if ($makefile_pl =~ /use\s+inc::Module::Install/) { }
154 0 0 $rel =~ /_/ ? :
156 0 0 unless my $module = shift @tuples
162 0 0 $map{$rel} ? :
171 0 0 unless $block
174 0 0 if ($hashref and ref $hashref eq ref {})
176 0 0 $rel eq 'PREREQ_PM' ? :
181 0 0 $map{$rel} ? :
197 0 0 unless $prereqs and ref $prereqs eq ref {}
215 0 0 unless $prereqs_p and ref $prereqs_p eq ref {}
218 0 0 unless $prereqs_r and ref $prereqs_r eq ref {}
225 0 0 $map{$type} ? :
237 0 0 unless -f $inifile
239 0 0 unless eval { do { require Config::INI::Reader } }
242 0 0 unless $config and ref $config eq ref {}
257 0 0 unless $key =~ /^Prereqs\b/
260 0 0 if ($type)
261 0 0 if ($type =~ s/^(Configure|Build|Test|Runtime)//)
264 0 0 if ($type =~ s/^(Requires|Recommends|Suggests)//)
269 0 0 unless $conf and ref $conf eq ref {}
270 0 0 if ($conf->{'-phase'})
273 0 0 if ($conf->{'-relationship'})
282 0 0 $map{$type} ? :