Branch Coverage

lib/Rex/Hardware/VirtInfo.pm
Criterion Covered Total %
branch 5 44 11.3


line true false branch
23 0 9 if ($cache->valid($cache_key_name))
27 9 0 if (Rex::is_ssh() or not $^O =~ /^MSWin/iu)
50 0 9 if (is_dir('/proc/xen')) { }
0 9 elsif (is_dir('/proc/vz')) { }
9 0 elsif ($product_name =~ /KVM|Bochs/u) { }
0 0 elsif ($product_name =~ /VMware Virtual Platform/u) { }
0 0 elsif ($bios_vendor =~ /Xen/u) { }
0 0 elsif ($bios_vendor =~ /innotek GmbH/u) { }
0 0 elsif ($sys_vendor =~ /Microsoft Corporation/u) { }
0 0 elsif ($sys_vendor =~ /Parallels Software International Inc/u) { }
0 0 elsif ($sys_vendor =~ /QEMU/u) { }
0 0 elsif ($sys_vendor =~ /DigitalOcean/u) { }
0 0 elsif ($self_status =~ /VxID: \d+/u) { }
0 0 elsif ($cpuinfo =~ /model name.*QEMU Virtual CPU/u) { }
0 0 elsif ($cpuinfo =~ /vendor_id.*User Mode Linux|model name.*UML/u) { }
0 0 elsif ($cpuinfo =~ /vendor_id.*PowerVM Lx86/u) { }
0 0 elsif ($cpuinfo =~ m[vendor_id.*IBM/S390]u) { }
0 0 elsif ($modules =~ /kvm/u) { }
0 0 elsif ($modules =~ /vboxdrv/u) { }
55 0 0 if ($string =~ /control_d/u)
64 0 0 if (is_dir("/proc/bc"))
113 0 0 if ($self_status =~ /VxID: 0/u)