Branch Coverage

blib/lib/FusionInventory/Agent/Task/Inventory/Solaris/CPU.pm
Criterion Covered Total %
branch 45 64 70.3


line true false branch
13 0 0 if $params{'no_category'}{'cpu'}
43 12 2 $_ ? :
46 6 38 unless $_->{'speed'}
50 14 0 $_ ? :
53 0 190 unless $_->{'speed'}
65 12 2 $physical_speed ? :
68 14 0 $virtual_speed ? :
72 2 1 $type =~ /Xeon/ ? :
11 3 $type =~ /SPARC/ ? :
78 0 5 $type eq 'SPARC64-VIII' ? :
0 5 $type eq 'SPARC64-VII++' ? :
0 5 $type eq 'SPARC64-VII+' ? :
0 5 $type eq 'SPARC64-VII' ? :
0 5 $type eq 'SPARC64-VI' ? :
0 5 $type eq 'SPARC-T3' ? :
0 5 $type eq 'UltraSPARC-T2+' ? :
4 5 $type eq 'UltraSPARC-T2' ? :
2 9 $type eq 'UltraSPARC-T1' ? :
3 11 $type eq 'UltraSPARC-IV' ? :
91 0 14 if ($type =~ /MB86907/) { }
0 14 elsif ($type =~ /MB86904|390S10/) { }
0 14 elsif ($type =~ /,RT62[56]/) { }
94 0 0 $speed > 70 ? :
100 6 8 unless ($cores)
127 0 26 unless $handle
131 380 1140 if ($line =~ /The (\S+) processor operates at (\d+) MHz/)
151 0 26 unless $handle
156 74 124 if ($line =~ /^The physical processor has (\d+) virtual/)
163 2 122 if ($line =~ /^The physical processor has (\d+) cores and (\d+) virtual/)
170 12 110 if ($line =~ /^The (\S+) physical processor has (\d+) virtual/)
178 76 34 if ($line =~ /(\S+) \(.* clock (\d+) MHz\)/)
185 16 18 if ($line =~ /Intel\(r\) Xeon\(r\) CPU +(\S+)/)