Branch Coverage

blib/lib/FusionInventory/Agent/Task/Inventory/Virtualization/Qemu.pm
Criterion Covered Total %
branch 14 26 53.8


line true false branch
12 0 0 if canRun('virsh')
29 2 21 if ($option =~ /^(?:[fhsv]d[a-d]|cdrom) (\S+)/) { }
2 19 elsif ($option =~ /^name (\S+)/) { }
3 16 elsif ($option =~ /^m (\S+)/) { }
1 15 elsif ($option =~ /^uuid (\S+)/) { }
30 2 0 unless $values->{'name'}
39 1 22 if ($option =~ /smbios/)
40 1 0 if ($option =~ /smbios.*uuid=([a-zA-Z0-9-]+)/)
43 1 0 if ($option =~ /smbios.*serial=([a-zA-Z0-9-]+)/)
49 0 3 if ($values->{'mem'} == 0)
65 0 0 if $process->{'CMD'} =~ /^\[/
66 0 0 unless $process->{'CMD'} =~ /(qemu|kvm|qemu-kvm|qemu-system\S+) .*\S/x
69 0 0 unless $values