Branch Coverage

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


line true false branch
13 0 0 if $params{'no_category'}{'cpu'}
24 0 0 if (canRun('/opt/propplus/bin/cprop') and not isHPVMGuest())
38 0 0 if (canRun('/usr/contrib/bin/machinfo')) { }
79 0 0 if ($cpuInfos{$device}) { }
100 0 0 if ($$CPUinfo{'TYPE'} eq 'unknow' and $serie =~ /ia64/)
103 0 0 if ($serie =~ /9000/)
117 0 0 unless $info
121 0 0 if (ref $cpu_info eq 'HASH') { }
125 0 0 if ($$cpu_info{'clock speed'} =~ /(\d+) MHz/)
129 0 0 if ($$cpu_info{'processor model'} =~ /Intel/)
133 0 0 if ($$cpu_info{'processor model'} =~ /Itanium/)
138 0 0 if ($cpu_info =~ /^(\d+) /)
141 0 0 if ($cpu_info =~ /([\d.]+) GHz/)
144 0 0 if ($cpu_info =~ /Intel/)
147 0 0 if ($cpu_info =~ /Itanium/)
150 0 0 if ($cpu_info =~ /(\d+) logical processors/)
160 0 0 unless $handle
166 0 0 if ($line =~ /^\[Instance\]: \d+/)
172 0 0 if ($line =~ /^ \s+ \[ ([^\]]+) \]: \s (.+)/x)
177 0 0 if ($line =~ /^\*+/)
178 0 0 unless keys %$instance
180 0 0 $$instance{'Processor Type'} =~ /Itanium/ ? :
182 0 0 $$instance{'Processor Type'} =~ /Intel/ ? :
191 0 0 if ($$instance{'Location'} =~ /Cell Slot Number (\d+)\b/i) { }
194 0 0 if ($cpus[$slotId]) { }