Branch Coverage

blib/lib/FusionInventory/Agent/SOAP/VMware.pm
Criterion Covered Total %
branch 15 34 44.1


line true false branch
48 7 0 if ($res->is_success) { }
60 0 0 if ($tmpRef and $tmpRef->{'faultstring'})
74 0 7 unless $answer
87 5 2 if ($_->{'propSet'}) { }
90 49 97 unless $p->{'val'}
115 0 1 unless $answer
118 0 1 unless $serviceInstance
120 0 1 if ($serviceInstance->[0]{'about'}{'apiType'} eq 'VirtualCenter') { }
142 0 1 unless $answer
143 0 1 if $answer =~ /ServerFaultCode/m
184 0 0 if (ref $ref eq 'HASH') { }
0 0 elsif ($ref) { }
217 0 4 unless $answer
229 1 0 unless $id
248 1 0 if (exists $ref->[0]{'vm'}{'ManagedObjectReference'}) { }
249 1 0 if (ref $ref->[0]{'vm'}{'ManagedObjectReference'} eq 'ARRAY') { }
272 0 0 unless ($self->{'vcenter'})