Branch Coverage

blib/lib/FusionInventory/Agent/Task/Deploy/File.pm
Criterion Covered Total %
branch 6 38 15.7


line true false branch
15 0 1 unless $params{'datastore'}
16 0 1 unless $params{'sha512'}
39 0 4 unless $sha512 =~ /^(.)(.)(.{6})/
47 0 0 if (-f $dir . '/' . $subFilePath)
54 0 4 if ($self->{'p2p'}) { }
72 0 0 unless $self->{'mirrors'}
82 0 0 if (-f $partFilePath)
83 0 0 if $self->_getSha512ByFile($partFilePath) eq $sha512
87 0 0 if ($self->{'p2p'} and ref $p2pHostList ne 'ARRAY' and 'FusionInventory::Agent::Task::Deploy::P2P'->require)
91 0 0 if $@
98 0 0 unless $mirror
100 0 0 unless $sha512 =~ /^(.)(.)/
108 0 0 if ($response and $response->code == 200 and -f $partFilePath)
109 0 0 if ($self->_getSha512ByFile($partFilePath) eq $sha512)
110 0 0 if $remoteType eq 'p2p'
129 1 1 unless -f $filePath
145 0 0 if $@
154 0 0 if (-f $filePath)
155 0 0 if ($self->_getSha512ByFile($filePath) eq $self->{'sha512'})