Branch Coverage

lib/Rex/Virtualization/LibVirt/hypervisor.pm
Criterion Covered Total %
branch 12 24 50.0


line true false branch
23 0 2 ref $virt_settings ? :
25 0 2 unless ($arg1)
29 2 0 if ($arg1 eq 'capabilities') { }
31 0 2 if ($? != 0)
51 0 2 if (ref $xml->{'capabilities'}{'guest'} ne "ARRAY")
57 2 2 if $line->{'arch'}{'name'} ne "x86_64"
60 2 0 if defined $line->{'arch'}{'name'}
63 2 0 if defined $line->{'arch'}{'emulator'}{'content'}
66 0 2 if defined $line->{'arch'}{'loader'}{'content'}
69 2 0 if defined $line->{'os_type'}{'content'}
71 2 0 if (defined $line->{'arch'}{'domain'} and ref $line->{'arch'}{'domain'} eq 'ARRAY') { }
80 0 0 if defined $line->{'arch'}{'domain'}{'type'}