Condition Coverage

lib/Rex/Virtualization/LibVirt/create.pm
Criterion Covered Total %
condition 12 45 26.6


and 3 conditions

line !l l&&!r l&&r condition
80 0 0 2 not exists $_->{'template'} and $_->{'size'}
0 0 2 not exists $_->{'template'} and $_->{'size'} and $_->{'type'} eq "file"
0 0 0 $_->{'template'} and $_->{'type'} eq "file"
144 2 0 0 exists $opts->{'os'} and exists $opts->{'os'}{'kernel'}
0 0 0 exists $opts->{'os'} and exists $opts->{'os'}{'kernel'} and not exists $hyper->{'kvm'}
184 0 2 0 operating_system_is("Debian") and exists $hyper->{'xen'}
193 2 0 0 exists $hyper->{'loader'} and not exists $opts->{'loader'}
209 2 0 0 exists $hyper->{'xen'} and $opts->{'type'} eq "pvm"
270 0 0 2 not exists $store->{'size'} and $store->{'type'} eq "file"
281 0 2 0 exists $store->{'file'} and $store->{'file'} =~ /\.iso$/u
2 0 0 exists $store->{'file'} and $store->{'file'} =~ /\.iso$/u and not exists $store->{'device'}
292 2 0 0 not exists $store->{'dev'} and $store->{'device'} eq "cdrom"
309 0 0 2 exists $hyper->{'kvm'} and $store->{'device'} eq "disk"
320 0 0 2 $store->{'bus'} eq "virtio" and not exists $store->{'address'}
0 0 0 $store->{'bus'} eq "ide" and not exists $store->{'address'}