Branch Coverage

blib/lib/Alien/Build/Plugin/Download/GitHub.pm
Criterion Covered Total %
branch 28 40 70.0


line true false branch
31 0 7 if (defined $meta->prop->{'start_url'})
36 1 6 $self->tags_only ? :
52 0 21 if (defined $ENV{$name})
56 0 0 if $once
70 0 8 unless do { my $uri = "URI"->new($url || $build->meta_prop->{'start_url'}); $uri->scheme eq "https" if $uri->host eq "api.github.com" }
72 8 0 if $uri->host eq "api.github.com"
79 0 0 if (defined $secret)
88 7 1 if ($res->{'type'} eq 'file' and $res->{'filename'} =~ qr/^(?:releases|tags)$/) { }
91 6 1 if ($res->{'content'}) { }
1 0 elsif ($res->{'path'}) { }
103 6 1 $res->{'filename'} eq 'releases' ? :
105 0 7 if ($ENV{'ALIEN_BUILD_PLUGIN_DOWNLOAD_GITHUB_DEBUG'})
125 18 0 defined $version ? :
128 4 14 if (my $include = $self->include_assets)
129 2 2 ref $include eq 'Regexp' ? :
130 2 2 unless $release->{'assets'}
136 3 0 defined $version ? :
3 1 if 0 == $filter or $asset->{'name'} =~ /$include/
144 2 5 if exists $res->{'protocol'}
154 6 1 unless ($self->prefer)