Branch Coverage

blib/lib/FusionInventory/Agent/Task/Inventory/HPUX/CPU.pm
Criterion Covered Total %
branch 26 50 52.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 6 unless $info
121 1 5 if (ref $cpu_info eq 'HASH') { }
125 1 0 if ($cpu_info->{'clock speed'} =~ /(\d+) MHz/)
129 1 0 if ($cpu_info->{'processor model'} =~ /Intel/)
133 1 0 if ($cpu_info->{'processor model'} =~ /Itanium/)
138 5 0 if ($cpu_info =~ /^(\d+) /)
141 5 0 if ($cpu_info =~ /([\d.]+) GHz/)
144 5 0 if ($cpu_info =~ /Intel/)
147 5 0 if ($cpu_info =~ /Itanium/)
150 2 3 if ($cpu_info =~ /(\d+) logical processors/)
160 0 1 unless $handle
166 8 101 if ($line =~ /^\[Instance\]: \d+/)
172 80 21 if ($line =~ /^ \s+ \[ ([^\]]+) \]: \s (.+)/x)
177 16 5 if ($line =~ /^\*+/)
178 8 8 unless keys %$instance
180 8 0 $instance->{'Processor Type'} =~ /Itanium/ ? :
182 8 0 $instance->{'Processor Type'} =~ /Intel/ ? :
191 8 0 if ($instance->{'Location'} =~ /Cell Slot Number (\d+)\b/i) { }
194 6 2 if ($cpus[$slotId]) { }