| blib/lib/Alien/Build/Plugin/Core/Download.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 16 | 24 | 66.6 |
| line | true | false | branch |
|---|---|---|---|
| 20 | 2 | 10 | if ($res->{'type'} =~ /^(?:html|dir_listing)$/) |
| 28 | 3 | 9 | if ($res->{'type'} eq "list") |
| 31 | 0 | 3 | if @{$res->{'list'};} == 0 |
| 34 | 3 | 0 | if (@other > 8) |
| 43 | 0 | 3 | if ($version) |
| 51 | 12 | 0 | if ($res->{'type'} eq "file") |
| 55 | 4 | 8 | if ($res->{'content'}) { } |
| 8 | 0 | elsif ($res->{'path'}) { } | |
| 66 | 7 | 1 | if (defined $res->{'tmp'} and not $res->{'tmp'}) { } |
| 68 | 7 | 0 | if (-e $res->{'path'}) { } |
| 83 | 0 | 1 | if (-d $res->{'path'}) { } |
| 94 | 0 | 1 | unless File::Copy::copy("$from", "$to") |