Branch Coverage

blib/lib/Alien/Base/ModuleBuild/Repository/HTTP.pm
Criterion Covered Total %
branch 32 48 66.6


line true false branch
22 11 1 unless defined $self->{'exact_filename'} and $self->{'exact_filename'} =~ /^https:/
30 4 9 if $self->{'connection'}
37 1 8 unless eval { do { require $module; 1 } }
42 8 0 if ($self->{'protocol_class'}->isa('HTTP::Tiny')) { }
0 0 elsif ($self->{'protocol_class'}->isa('LWP::UserAgent')) { }
46 1 7 if "Alien::Base::ModuleBuild"->alien_download_rule =~ /encrypt/
52 0 0 if "Alien::Base::ModuleBuild"->alien_download_rule =~ /encrypt/
78 0 7 if $self->is_secure_fetch and not $uri =~ /^https:/
82 0 7 if $is_error
85 4 0 if (defined $disposition and $disposition =~ /filename="([^"]+)"/ || $disposition =~ /filename=([^\s]+)/)
102 0 1 if $self->is_secure_fetch and not $uri =~ /^https:/
107 0 1 if ($is_error)
124 1 2 if ($Has_HTML_Parser) { }
142 0 8 unless $tag eq "a"
143 0 8 unless defined $attrs{'href'}
164 15 2 if (defined $host) { }
166 15 0 unless ($base)
169 14 1 unless (defined $base->scheme)
172 10 5 if defined $path
184 0 11 if (&blessed($res) and $res->isa('HTTP::Response')) { }
186 0 0 unless ($res->is_success)
192 3 8 unless ($res->{'success'})
193 2 1 $res->{'status'} == 599 ? :
194 1 2 if ($res->{'status'} == 599 and $reason =~ /https support/)