Branch Coverage

blib/lib/FusionInventory/Agent/Task/Inventory/Generic/Storages/HP.pm
Criterion Covered Total %
branch 12 32 37.5


line true false branch
28 0 0 unless my $machKey = $Registry->Open('LMachine', {'Access', Win32::TieRegistry::KEY_READ()})
34 0 0 unless $uninstallValues
37 0 0 unless $uninstallString
39 0 0 unless $uninstallString =~ /(.*\\)hpuninst\.exe/
41 0 0 unless -f $hpacuacliPath
58 0 0 canRun('hpacucli') ? :
79 0 2 $params{'path'} ? :
81 0 2 unless $handle
85 0 3 unless $line =~ /Slot (\d+)/
97 0 2 $params{'path'} && defined $params{'slot'} ? :
99 0 2 unless $handle
103 4 4 unless $line =~ /physicaldrive (\S+)/
115 0 2 $params{'path'} && defined $params{'slot'} && defined $params{'drive'} ? :
117 0 2 unless $handle
121 6 28 unless $line =~ /(\S[^:]+) : \s+ (.+)/x
142 2 0 $data{'Drive Type'} eq 'Data Drive' ? :