Branch Coverage

blib/lib/FusionInventory/Agent/SOAP/VMware/Host.pm
Criterion Covered Total %
branch 34 54 62.9


line true false branch
25 5 1 $h ? :
11 6 ref $h eq 'ARRAY' ? :
51 0 1 unless ref $biosInfo eq 'HASH'
54 1 0 if (ref $systemInfo->{'otherIdentifyingInfo'} eq 'HASH') { }
0 0 elsif (ref $systemInfo->{'otherIdentifyingInfo'} eq 'ARRAY') { }
59 0 0 if ($_->{'identifierType'}{'key'} eq 'ServiceTag')
137 15 12 if $pcisubsystemid =~ /^[0:]+$/
176 2 4 $ref->{'spec'}{'ip'}{'ipAddress'} ? :
189 0 6 if $$seen{$_->{'device'}}++
190 1 5 $nicType eq 'vnic' ? :
197 1 0 if $self->{'hash'}[0]{'config'}{'network'}{'consoleVnic'}
199 1 0 if $self->{'hash'}[0]{'config'}{'vmotion'}{'netConfig'}{'candidateVnic'}
202 2 0 if $$seen{$_->{'device'}}++
225 0 4 unless ref $altName eq 'HASH'
226 0 4 unless $altName->{'namespace'}
227 0 4 unless $altName->{'data'}
228 1 3 if ($altName->{'namespace'} eq 'SERIALNUM')
232 1 0 if ($entry->{'capacity'}{'blockSize'} and $entry->{'capacity'}{'block'})
236 1 1 if ($entry->{'vendor'} and not $entry->{'vendor'} =~ /^\s*ATA\s*$/) { }
280 1 1 if ($_->{'volume'}{'type'} and $_->{'volume'}{'type'} =~ /NFS/i)
311 0 0 $machine->{'summary'}{'runtime'}{'powerState'} eq 'suspended' ? :
1 0 $machine->{'summary'}{'runtime'}{'powerState'} eq 'poweredOff' ? :
3 1 $machine->{'summary'}{'runtime'}{'powerState'} eq 'poweredOn' ? :
313 0 4 unless $status
317 3 52 if $device->{'macAddress'}
323 0 4 if $comment
325 0 4 if (defined $_->[0]{'summary'}{'config'}{'template'} and $_->[0]{'summary'}{'config'}{'template'} eq 'true')