Branch Coverage

blib/lib/FusionInventory/Agent/Task/Inventory.pm
Criterion Covered Total %
branch 0 74 0.0


line true false branch
21 0 0 unless $$self{'target'}->isa('FusionInventory::Agent::Target::Server')
25 0 0 if (not $content && $$content{'RESPONSE'} or $$content{'RESPONSE'} ne 'SEND')
26 0 0 if ($$self{'config'}{'force'}) { }
41 0 0 if ($FusionInventory::Agent::Task::Inventory::REAL_USER_ID != 0)
55 0 0 unless ($ENV{'PATH'})
69 0 0 if ($$self{'target'}->isa('FusionInventory::Agent::Target::Local')) { }
0 0 elsif ($$self{'target'}->isa('FusionInventory::Agent::Target::Server')) { }
75 0 0 if ($path eq '-')
80 0 0 if (-d $path)
81 0 0 $format eq 'xml' ? :
90 0 0 if ($file)
91 0 0 if ('Win32::Unicode::File'->require) { }
96 0 0 unless $handle
108 0 0 if ($file)
134 0 0 unless $response
148 0 0 unless @modules
154 0 0 @components > 5 ? :
158 0 0 if ($parent and not $$self{'modules'}{$parent}{'enabled'})
165 0 0 if ($FusionInventory::Agent::Task::Inventory::EVAL_ERROR)
185 0 0 unless ($enabled)
198 0 0 $parent ? :
0 0 ${$module . '::runAfter';} ? :
208 0 0 unless $$self{'modules'}{$module}{'enabled'}
210 0 0 unless ${$module . '::runMeIfTheseChecksFailed';}
215 0 0 if ($$self{'modules'}{$other_module}{'enabled'})
221 0 0 if ($failed)
233 0 0 if $$self{'modules'}{$module}{'done'}
239 0 0 unless $$self{'modules'}{$other_module}
242 0 0 unless $$self{'modules'}{$other_module}{'enabled'}
245 0 0 if $$self{'modules'}{$other_module}{'used'}
284 0 0 if (-d $$self{'confdir'} . '/softwares')
291 0 0 if ($$self{'config'}{'additional-content'} and -f $$self{'config'}{'additional-content'})
305 0 0 unless -f $file
313 0 0 if ($file =~ /\.xml$/)
323 0 0 unless ($content)
335 0 0 if ($params{'format'} eq 'xml')
353 0 0 if ($params{'format'} eq 'html')