Branch Coverage

blib/lib/FusionInventory/Agent/Task/Deploy/Datastore/WorkDir.pm
Criterion Covered Total %
branch 0 30 0.0


line true false branch
22 0 0 unless (-d $self->{'path'})
46 0 0 if ($FusionInventory::Agent::Task::Deploy::Datastore::WorkDir::OSNAME eq 'MSWin32')
49 0 0 if (&Encode::is_utf8($file->{'name'}))
56 0 0 if ($file->{'uncompress'})
59 0 0 unless ($1)
68 0 0 unless (open $fh, '>', $finalFilePath)
75 0 0 unless (-f $partFilePath)
81 0 0 if ($part = &gzopen($partFilePath, 'rb')) { }
94 0 0 unless ($file->validateFileByPath($finalFilePath))
105 0 0 if ($file->{'uncompress'})
106 0 0 if (canRun('7z')) { }
111 0 0 if (/Extracting\s+(.*\.tar)$/)
115 0 0 if ($tarball and $finalFilePath =~ /tgz$/i || $finalFilePath =~ /tar\.(gz|xz|bz2)$/i)
126 0 0 if (not $ae) { }
0 0 elsif (not $ae->extract('to', $self->{'path'})) { }