Branch Coverage

blib/lib/CPAN/Digger.pm
Criterion Covered Total %
branch 21 60 35.0


line true false branch
40 1 0 if ($repository)
44 0 1 unless ($url)
50 1 0 if ($url =~ m[^https?://github.com/])
53 0 1 if ($url =~ m[^https?://gitlab.com/])
78 0 1 if ($license eq 'unknown') { }
1 0 elsif (not exists $known_licenses{$license}) { }
89 1 1 if ($resources{'repository'}) { }
91 1 0 if ($vcs_url)
114 0 0 if ($status_line eq '404 Not Found')
118 0 0 if ($response->code != 200)
122 0 0 if ($response->redirects)
138 0 0 if ($exit_code != 0)
146 0 0 scalar @ga ? :
153 0 0 if ($data->{$ci})
174 1 0 if $self->{'recent'}
175 0 1 if $self->{'author'}
179 0 1 if ($self->{'author'}) { }
190 0 2 if $distros{$item->distribution}
194 0 2 if $row and $row->{'version'} eq $item->version
201 0 1 if ($self->{'author'})
203 0 0 if ($self->{'limit'} and @all_the_distributions > $self->{'limit'})
209 0 1 if ($self->{'check_github'})
214 0 0 unless $data_ref->{'vcs_name'}
216 0 0 if ($self->{'check_github'} and $data_ref->{'vcs_name'} eq 'GitHub')
221 0 0 if $self->{'sleep'}
226 1 0 if ($self->{'report'})
229 0 1 if ($self->{'limit'} and @distros > $self->{'limit'})
234 1 1 $distro->{'vcs_url'} ? :
235 0 2 if ($self->{'check_github'})
236 0 0 $distro->{'has_ci'} ? :