Branch Coverage

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


line true false branch
64 0 0 if $$inventory{'content'}{'HARDWARE'}{'VMSYSTEM'} ne 'Physical'
69 0 0 if ($type eq 'Xen' and not $$inventory{'h'}{'CONTENT'}{'BIOS'}{'SMANUFACTURER'})
79 0 0 $type eq 'Virtuozzo' ? :
82 0 0 $type eq 'LXC' ? :
0 0 $type eq 'Xen' ? :
96 0 0 if (-f '/.dockerinit')
101 0 0 if (canRun('/usr/sbin/zoneadm'))
103 0 0 if $zone ne 'global'
107 0 0 if (-d '/proc/xen' or getFirstMatch('file', '/sys/devices/system/clocksource/clocksource0/available_clocksource', 'pattern', qr/xen/))
114 0 0 if (getFirstMatch('file', '/proc/xen/capabilities', 'pattern', qr/control_d/)) { }
128 0 0 if (canRun('/sbin/sysctl'))
135 0 0 if $line and $line == 1
140 0 0 if (-f '/proc/modules')
147 0 0 unless $line =~ /$pattern/
154 0 0 if $result
159 0 0 if (-r '/var/log/dmesg') { }
0 0 elsif (-x '/bin/dmesg') { }
0 0 elsif (-x '/sbin/dmesg') { }
169 0 0 if ($handle)
172 0 0 if $result
177 0 0 if (-f '/proc/scsi/scsi')
185 0 0 if $result
187 0 0 if (getFirstMatch('file', '/proc/1/environ', 'pattern', qr/container=lxc/))
195 0 0 if (-f '/proc/self/status')
202 0 0 if $key eq 'envID' and $value > 0
205 0 0 if $result
221 0 0 if $line =~ /$vmware_pattern/
222 0 0 if $line =~ /$qemu_pattern/
223 0 0 if $line =~ /$virtual_machine_pattern/
224 0 0 if $line =~ /$virtualbox_pattern/
225 0 0 if $line =~ /$xen_pattern/
253 0 0 unless $variable =~ /^LIBVIRT_LXC_UUID/