Branch Coverage

blib/lib/FusionInventory/Agent/Task/Inventory/Virtualization/Vmsystem.pm
Criterion Covered Total %
branch 0 80 0.0


line true false branch
66 0 0 if ($type eq 'Xen' and not $inventory->{'h'}{'CONTENT'}{'BIOS'}{'SMANUFACTURER'})
78 0 0 if ($type eq 'Virtuozzo')
95 0 0 if ($bios->{'SMANUFACTURER'})
96 0 0 if $bios->{'SMANUFACTURER'} =~ /Microsoft/
97 0 0 if $bios->{'SMANUFACTURER'} =~ /VMware/
99 0 0 if ($bios->{'BMANUFACTURER'})
100 0 0 if $bios->{'BMANUFACTURER'} =~ /(QEMU|Bochs)/
101 0 0 if $bios->{'BMANUFACTURER'} =~ /(VirtualBox|innotek)/
102 0 0 if $bios->{'BMANUFACTURER'} =~ /^Xen/
104 0 0 if ($bios->{'SMODEL'})
105 0 0 if $bios->{'SMODEL'} =~ /VMware/
106 0 0 if $bios->{'SMODEL'} =~ /Virtual Machine/
108 0 0 if ($bios->{'BVERSION'})
109 0 0 if $bios->{'BVERSION'} =~ /VirtualBox/
112 0 0 if (-f '/.dockerinit')
117 0 0 if (canRun('/usr/sbin/zoneadm'))
119 0 0 if $zone ne 'global'
123 0 0 if (-d '/proc/xen' or getFirstMatch('file', '/sys/devices/system/clocksource/clocksource0/available_clocksource', 'pattern', qr/xen/))
130 0 0 if (getFirstMatch('file', '/proc/xen/capabilities', 'pattern', qr/control_d/)) { }
144 0 0 if (canRun('/sbin/sysctl'))
151 0 0 if $line and $line == 1
156 0 0 if (-f '/proc/modules')
163 0 0 unless $line =~ /$pattern/
170 0 0 if $result
175 0 0 if (-r '/var/log/dmesg') { }
0 0 elsif (-x '/bin/dmesg') { }
0 0 elsif (-x '/sbin/dmesg') { }
185 0 0 if ($handle)
188 0 0 if $result
193 0 0 if (-f '/proc/scsi/scsi')
201 0 0 if $result
203 0 0 if (getFirstMatch('file', '/proc/1/environ', 'pattern', qr/container=lxc/))
211 0 0 if (-f '/proc/self/status')
218 0 0 if $key eq 'envID' and $value > 0
221 0 0 if $result
237 0 0 if $line =~ /$vmware_pattern/
238 0 0 if $line =~ /$qemu_pattern/
239 0 0 if $line =~ /$virtual_machine_pattern/
240 0 0 if $line =~ /$virtualbox_pattern/
241 0 0 if $line =~ /$xen_pattern/