Branch Coverage

lib/Rex/Virtualization/VBox/create.pm
Criterion Covered Total %
branch 0 48 0.0


line true false branch
32 0 0 unless ($opts)
57 0 0 if ($hd->{'type'} eq "file")
61 0 0 unless ($filename)
63 0 0 if ($hd->{'device'} eq "disk")
65 0 0 unless (-f $filename)
77 0 0 if ($hd->{'device'} eq "cdrom")
103 0 0 unless (exists $opts->{'name'})
107 0 0 unless (exists $opts->{'storage'})
111 0 0 if (not exists $opts->{'memory'}) { }
119 0 0 unless (exists $opts->{'cpus'})
123 0 0 unless (exists $opts->{'boot'})
128 0 0 if ($opts->{'boot'} eq "hd")
144 0 0 unless (exists $store->{'type'})
148 0 0 if ($store->{'type'} eq "file" and not exists $store->{'format'})
152 0 0 if (not exists $store->{'size'} and $store->{'type'} eq "file")
156 0 0 if ($store->{'type'} eq "file")
160 0 0 if (exists $store->{'file'} and $store->{'file'} =~ /\.iso$/u and not exists $store->{'device'})
167 0 0 unless (exists $store->{'device'})
171 0 0 if ($store->{'device'} eq "cdrom")
182 0 0 unless (exists $opts->{'network'})
193 0 0 unless (exists $netdev->{'type'})
197 0 0 unless (exists $netdev->{'bridge'})
208 0 0 if ($size =~ /^(\d+)G$/u) { }
0 0 elsif ($size =~ /^(\d+)M$/u) { }