Branch Coverage

blib/lib/Alien/Build/Plugin/Fetch/Cache.pm
Criterion Covered Total %
branch 13 24 54.1


line true false branch
41 7 0 if ($cache_url and not $cache_url =~ m[^/] and not $cache_url =~ /^file:/)
45 4 3 if (-r $local_file)
53 3 0 if (defined $local_file)
56 2 1 if ($res->{'type'} eq 'file') { }
1 0 elsif ($res->{'type'} =~ /^(list|html|dir_listing)$/) { }
60 1 1 if ($res->{'content'}) { }
82 1 1 if ($res->{'content'}) { }
1 0 elsif ($res->{'path'}) { }
106 0 1 if ($ENV{'ALIEN_BUILD_PLUGIN_FETCH_CACHE_PRECACHE'})
113 0 0 if ($ret->{'type'} eq 'list')
118 0 0 if ($url and not $url =~ m[^/] and not $url =~ /^file:/)
121 0 0 if -f $local_file