Branch Coverage

blib/lib/FusionInventory/Agent/Task/Inventory/Virtualization/VirtualBox.pm
Criterion Covered Total %
branch 16 28 57.1


line true false branch
14 0 0 unless canRun('VBoxManage')
40 0 0 unless ($params{'scan_homedirs'})
49 0 0 $FusionInventory::Agent::Task::Inventory::Virtualization::VirtualBox::OSNAME eq 'darwin' ? :
54 0 0 unless $user->dir =~ /$pattern/
59 0 0 if @users > 10
77 0 6 unless $handle
99 68 4114 if ($line =~ /^Name:\s+(.*)$/) { }
56 4058 elsif ($line =~ /^UUID:\s+(.+)/) { }
56 4002 elsif ($line =~ /^Memory size:\s+(.+)/) { }
56 3946 elsif ($line =~ /^State:\s+(.+) \(/) { }
12 3934 elsif ($line =~ /^Index:\s+(\d+)$/) { }
102 12 56 if (defined $index)
106 50 6 if $machine
126 6 0 if $machine