Branch Coverage

blib/lib/FusionInventory/Agent/Task/Inventory/AIX/LVM.pm
Criterion Covered Total %
branch 44 62 70.9


line true false branch
12 0 0 if $params{'no_category'}{'lvm'}
42 0 0 unless $handle
50 0 0 unless $line
68 17 0 $params{'name'} ? :
70 0 17 unless $handle
78 17 221 if ($line =~ /PP SIZE:\s+(\d+)/)
81 17 221 if ($line =~ /^LV IDENTIFIER:\s+(\S+)/)
84 17 221 if ($line =~ /^LPs:\s+(\S+)/)
87 17 221 if ($line =~ /^TYPE:\s+(\S+)/)
105 0 0 unless $handle
122 4 0 $params{'name'} ? :
124 0 4 unless $handle
134 4 41 if ($line =~ /PHYSICAL VOLUME:\s+(\S+)/)
137 3 42 if ($line =~ /FREE PPs:\s+(\d+)/)
140 3 42 if ($line =~ /TOTAL PPs:\s+(\d+)/)
143 4 41 if ($line =~ /VOLUME GROUP:\s+(\S+)/)
146 3 42 if ($line =~ /PP SIZE:\s+(\d+)/)
149 4 41 if ($line =~ /PV IDENTIFIER:\s+(\S+)/)
155 3 1 if (defined $volume->{'PE_SIZE'})
156 3 0 if defined $total
157 3 0 if defined $free
159 3 1 if defined $total
171 0 0 unless $handle
187 1 0 $params{'name'} ? :
189 0 1 unless $handle
198 1 12 if ($line =~ /TOTAL PPs:\s+(\d+)/)
201 1 12 if ($line =~ /FREE PPs:\s+(\d+)/)
204 1 12 if ($line =~ /VG IDENTIFIER:\s+(\S+)/)
207 1 12 if ($line =~ /PP SIZE:\s+(\d+)/)
210 3 10 if ($line =~ /LVs:\s+(\d+)/)
213 1 12 if ($line =~ /ACTIVE PVs:\s+(\d+)/)