Branch Coverage

blib/lib/FusionInventory/Agent/Task/Inventory/HPUX/Memory.pm
Criterion Covered Total %
branch 24 48 50.0


line true false branch
12 0 0 if $params{'no_category'}{'memory'}
25 0 0 if (canRun('/opt/propplus/bin/cprop') and not isHPVMGuest()) { }
33 0 0 if ($arch =~ /ia64/) { }
71 0 1 unless $handle
77 48 391 if ($line =~ /\[Instance\]: \d+/)
83 288 103 if ($line =~ /^ \s+ \[ ([^\]]+) \]: \s (\S+.*)/x)
88 96 7 if ($line =~ /^\*+/)
89 48 48 unless keys %$instance
90 24 24 unless $instance->{'Size'}
106 0 1 unless $handle
121 0 76 if ($line =~ /FRU\sSource\s+=\s+\S+\s+\(memory/)
124 0 76 if ($line =~ /Source\s+Detail\s+=\s4/)
127 11 65 if ($line =~ /\s+(\d+)\s+(\d+)/)
130 0 76 if ($line =~ /Extender\s+Location\s+=\s+(\S+)/)
133 0 76 if ($line =~ /DIMMS\s+Rank\s+=\s+(\S+)/)
137 0 76 if ($line =~ /FRU\s+Name\.*:\s+(\S+)/)
138 0 0 if ($line =~ /(\S+)_(\S+)/) { }
0 0 elsif ($line =~ /(\wIMM)(\S+)/) { }
147 0 76 if ($line =~ /Part\s+Number\.*:\s*(\S+)\s+/)
150 0 76 if ($line =~ /Serial\s+Number\.*:\s*(\S+)\s+/)
152 0 0 if ($ok eq 1)
153 0 0 if ($capacity eq 0)
177 0 2 unless $handle
185 145 6 unless $line =~ / (\w+IMM)\s+(\w+)\s+(\d+) # first column \s+ (\w+IMM)\s+(\w+)\s+(\d+) # second column /x