Branch Coverage

blib/lib/CPAN/UnsupportedFinder.pm
Criterion Covered Total %
branch 11 48 22.9


line true false branch
77 1 6 if (@_ == 1 and ref $_[0] eq 'HASH') { }
5 1 elsif (@_ % 2 == 0) { }
86 1 5 if (not defined $class) { }
2 3 elsif (builtin::blessed($class)) { }
87 0 1 if (scalar keys %args > 0)
106 4 0 unless (defined $self->{'logger'})
107 0 4 $self->{'verbose'} ? :
123 0 0 unless @modules
133 0 0 if $unsupported
180 0 0 if ($format eq 'json') { }
0 0 elsif ($format eq 'html') { }
244 0 0 if ($response->{'success'})
249 0 0 if ($response->{'status'} != 200 and $url =~ /::/)
298 0 0 if ($failure_rate > "0.5" or $last_update eq "Unknown" or $last_update lt "2022-01-01" or not $has_recent_tests or $has_unsupported_dependencies)
304 0 0 $has_recent_tests ? :
0 0 $has_unsupported_dependencies ? :
332 0 0 if ($test->{'timestamp'} and $test->{'timestamp'} > $six_months_ago)
345 0 0 unless $test_data and $test_data->{'results'}
350 0 0 $total_tests ? :
355 0 0 unless $release_data and $release_data->{'hits'}{'hits'}[0]
366 0 0 unless ($release_data)
375 0 0 if $dependency->{'phase'} and $dependency->{'phase'} eq "develop"
380 0 0 if ($dep_status->{'deprecated'} or $dep_status->{'backpan_only'})
395 0 0 unless ($module_data)