Branch Coverage

blib/lib/FusionInventory/Agent/Task/Deploy.pm
Criterion Covered Total %
branch 12 62 19.3


line true false branch
27 0 0 unless ($self->{'target'}->isa('FusionInventory::Agent::Target::Server'))
40 1 6 unless (defined $answer)
45 1 5 if (ref $answer ne 'HASH')
50 1 4 unless (defined $answer->{'associatedFiles'})
55 0 4 if (ref $answer->{'associatedFiles'} ne 'HASH')
61 2 4 unless (defined $answer->{'associatedFiles'}{$k}{$_})
69 1 1 unless (defined $job->{$_})
74 1 0 if (ref $job->{'actions'} ne 'ARRAY')
87 0 0 unless ($remoteUrl)
107 0 0 if (ref $answer eq 'HASH' and not keys %$answer)
113 0 0 unless (_validateAnswer(\$msg, $answer))
130 0 0 if ($_->{'associatedFiles'})
132 0 0 unless ($files->{$uuid})
162 0 0 if (ref $job->{'checks'} eq 'ARRAY')
164 0 0 unless $job->{'checks'}[$checknum]
169 0 0 if $checkStatus eq 'ok'
170 0 0 if $checkStatus eq 'ignore'
223 0 0 if ($file->filePartsExists)
261 0 0 if ($downloadIsOK)
282 0 0 unless ($downloadIsOK)
284 0 0 if ($retry--) { }
345 0 0 if (not $workdir->prepare) { }
392 0 0 if ($params and ref $params->{'checks'} eq 'ARRAY')
394 0 0 unless $job->{'checks'}[$checknum]
400 0 0 if ($checkStatus ne 'ok')
425 0 0 unless $ret->{'msg'}
426 0 0 if $@
427 0 0 unless ($ret->{'status'})
517 0 0 unless $globalRemoteConfig->{'schedule'}
518 0 0 unless ref $globalRemoteConfig->{'schedule'} eq 'ARRAY'
521 0 0 unless $job->{'task'} eq 'Deploy'