Branch Coverage

blib/lib/Alien/Build/Plugin/Download/GitHub.pm
Criterion Covered Total %
branch 33 56 58.9


line true false branch
37 0 7 if defined $meta->prop->{'start_url'}
38 0 7 if $self->asset and $self->tags_only
40 0 7 if ($self->asset) { }
49 1 6 $self->tags_only ? :
57 7 0 if ($self->asset_format ne "none")
59 0 7 if ($self->asset and $self->asset_format) { }
78 0 21 if (defined $ENV{$name})
82 0 0 if $once
96 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" }
98 8 0 if $uri->host eq "api.github.com"
105 0 0 if (defined $secret)
114 7 1 if ($res->{'type'} eq 'file' and $res->{'filename'} =~ qr/^(?:releases|tags)$/) { }
117 6 1 if ($res->{'content'}) { }
1 0 elsif ($res->{'path'}) { }
129 6 1 $res->{'filename'} eq 'releases' ? :
131 0 7 if ($ENV{'ALIEN_BUILD_PLUGIN_DOWNLOAD_GITHUB_DEBUG'})
144 0 7 if ($self->asset) { }
155 0 0 if ($asset->{'name'} =~ $self->asset_name)
161 0 0 $self->asset_convert_version ? :
177 18 0 defined $version ? :
180 4 14 if (my $include = $self->include_assets)
181 2 2 ref $include eq 'Regexp' ? :
182 2 2 unless $release->{'assets'}
188 3 0 defined $version ? :
3 1 if 0 == $filter or $asset->{'name'} =~ /$include/
197 0 7 if ($ENV{'ALIEN_BUILD_PLUGIN_DOWNLOAD_GITHUB_DEBUG'})
205 7 0 if exists $res->{'protocol'}
215 6 1 unless ($self->prefer)