Branch Coverage

blib/lib/CPANTS/Weight.pm
Criterion Covered Total %
branch 1 44 2.2


line true false branch
42 0 0 if $DEBUG
45 0 3 $^O eq 'MSWin32' ? :
144 0 0 ref $_[0] ? :
208 0 0 $$k{'easily_repackagable'} ? :
212 0 0 $$k{'distributed_by_debian'} ? :
220 0 0 $$k{'has_meta_yml'} && $$k{'metayml_parsable'} ? :
221 0 0 $$k{'metayml_conforms_to_known_spec'} && $$k{'metayml_has_license'} ? :
222 0 0 $$k{'metayml_conforms_current_spec'} && $$k{'metayml_declares_perl_version'} ? :
223 0 0 if ($meta1)
226 0 0 if ($meta1 or $meta2)
268 0 0 unless ($$self{'algorithm_weight'})
278 0 0 unless ($$self{'algorithm_volatility'})
288 0 0 unless ($$self{'source_weight'})
300 0 0 unless ($$self{'source_volatility'})
315 0 0 unless my $sth = 'ORDB::CPANTesters'->prepare("\t\tselect dist, version, state, perl from cpanstats\n\t\twhere state = ? or (\n\t\t\tstate in ( ?, ? ) and\n\t\t\tperl not like ? and\n\t\t\tperl not like ? and\n\t\t\t(\n\t\t\t\tperl like ? or\n\t\t\t\tperl like ? or\n\t\t\t\tperl like ? or\n\t\t\t\tperl like ? or\n\t\t\t\tperl like ?\n\t\t\t)\n\t\t)\n")
330 0 0 unless $sth->execute('cpan', 'fail', 'unknown', '%patch%', '%RC%', '5.4%', '5.5%', '5.6%', '5.8%', '5.10%')
339 0 0 unless (exists $fail{$dist})
345 0 0 unless defined $version
346 0 0 unless $version =~ /^[\d\.]+$/
351 0 0 if ($vcmp < 0)
357 0 0 if ($vcmp > 0)
363 0 0 if ($state eq 'fail' or $state eq 'unknown')