Branch Coverage

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


line true false branch
40 7 0 if ($cache_url and not $cache_url =~ m[^/] and not $cache_url =~ /^file:/)
44 4 3 if (-r $local_file)
52 3 0 if (defined $local_file)
55 2 1 if ($res->{'type'} eq 'file') { }
1 0 elsif ($res->{'type'} =~ /^(list|html|dir_listing)$/) { }
59 1 1 if ($res->{'content'}) { }
80 1 1 if ($res->{'content'}) { }
1 0 elsif ($res->{'path'}) { }
104 0 1 if ($ENV{'ALIEN_BUILD_PLUGIN_FETCH_CACHE_PRECACHE'})
111 0 0 if ($ret->{'type'} eq 'list')
116 0 0 if ($url and not $url =~ m[^/] and not $url =~ /^file:/)
119 0 0 if -f $local_file