Branch Coverage

blib/lib/FusionInventory/Agent/Task/Inventory/HPUX/Memory.pm
Criterion Covered Total %
branch 0 48 0.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 0 unless $handle
77 0 0 if ($line =~ /\[Instance\]: \d+/)
83 0 0 if ($line =~ /^ \s+ \[ ([^\]]+) \]: \s (\S+.*)/x)
88 0 0 if ($line =~ /^\*+/)
89 0 0 unless keys %$instance
90 0 0 unless $$instance{'Size'}
106 0 0 unless $handle
121 0 0 if ($line =~ /FRU\sSource\s+=\s+\S+\s+\(memory/)
124 0 0 if ($line =~ /Source\s+Detail\s+=\s4/)
127 0 0 if ($line =~ /\s+(\d+)\s+(\d+)/)
130 0 0 if ($line =~ /Extender\s+Location\s+=\s+(\S+)/)
133 0 0 if ($line =~ /DIMMS\s+Rank\s+=\s+(\S+)/)
137 0 0 if ($line =~ /FRU\s+Name\.*:\s+(\S+)/)
138 0 0 if ($line =~ /(\S+)_(\S+)/) { }
0 0 elsif ($line =~ /(\wIMM)(\S+)/) { }
147 0 0 if ($line =~ /Part\s+Number\.*:\s*(\S+)\s+/)
150 0 0 if ($line =~ /Serial\s+Number\.*:\s*(\S+)\s+/)
152 0 0 if ($ok eq 1)
153 0 0 if ($capacity eq 0)
177 0 0 unless $handle
185 0 0 unless $line =~ / (\w+IMM)\s+(\w+)\s+(\d+) # first column \s+ (\w+IMM)\s+(\w+)\s+(\d+) # second column /x